summaryrefslogtreecommitdiff
path: root/tests/unit/Collections/TPagedListTest.php
blob: f7c3bb6309b1bd0da7929c5bd8ca26e96b96326a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
require_once dirname(__FILE__).'/../phpunit.php';

Prado::using('System.Collections.TPagedList');

/**
 * @package System.Collections
 */
class TPagedListTest extends PHPUnit_Framework_TestCase {

	public function setUp() {
	}

	public function tearDown() {
	}

	public function testConstruct() {
		$list = new TPagedList();
		self::assertEquals(true, $list->getReadOnly());
		self::assertEquals(-1, $list->getVirtualCount());
		$list = new TPagedList(array(1, 2, 3));
		$list->setPageSize(3);
		self::assertEquals(3, $list->getCount());
	}

	public function testCustomPaging() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}

	public function testPageSize() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testCurrentPageIndex() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testOnPageIndexChanged() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testOnFetchData() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testGotoPage() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testNextPage() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testPreviousPage() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testVirtualCount() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testIsFirstPage() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testIsLastPage() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testGetCount() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testGetIterator() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testItemAt() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testIndexOf() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testOffsetExists() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testOffsetGet() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}
	
	public function testToArray() {
		throw new PHPUnit_Framework_IncompleteTestError();
	}

}

?>