From f71f9562d2ed0839f48bbf1bda7a80d0bc157778 Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 30 May 2007 23:03:25 +0000 Subject: added stubs for TPageListTest --- tests/unit/Collections/AllTests.php | 2 + tests/unit/Collections/TPagedListTest.php | 100 ++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 tests/unit/Collections/TPagedListTest.php (limited to 'tests') diff --git a/tests/unit/Collections/AllTests.php b/tests/unit/Collections/AllTests.php index 84ac3a9c..a8a4e7f8 100644 --- a/tests/unit/Collections/AllTests.php +++ b/tests/unit/Collections/AllTests.php @@ -10,6 +10,7 @@ require_once 'TMapTest.php'; require_once 'TQueueTest.php'; require_once 'TStackTest.php'; require_once 'TAttributeCollectionTest.php'; +require_once 'TPagedListTest.php'; class Collections_AllTests { public static function main() { @@ -24,6 +25,7 @@ class Collections_AllTests { $suite->addTestSuite('TQueueTest'); $suite->addTestSuite('TStackTest'); $suite->addTestSuite('TAttributeCollectionTest'); + $suite->addTestSuite('TPagedListTest'); return $suite; } diff --git a/tests/unit/Collections/TPagedListTest.php b/tests/unit/Collections/TPagedListTest.php new file mode 100644 index 00000000..f7c3bb63 --- /dev/null +++ b/tests/unit/Collections/TPagedListTest.php @@ -0,0 +1,100 @@ +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(); + } + +} + +?> -- cgit v1.2.3