diff options
Diffstat (limited to 'tests/unit/Collections')
-rw-r--r-- | tests/unit/Collections/AllTests.php | 2 | ||||
-rw-r--r-- | tests/unit/Collections/TPagedDataSourceTest.php | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/tests/unit/Collections/AllTests.php b/tests/unit/Collections/AllTests.php index a8a4e7f8..efa7eb21 100644 --- a/tests/unit/Collections/AllTests.php +++ b/tests/unit/Collections/AllTests.php @@ -11,6 +11,7 @@ require_once 'TQueueTest.php'; require_once 'TStackTest.php'; require_once 'TAttributeCollectionTest.php'; require_once 'TPagedListTest.php'; +require_once 'TPagedDataSourceTest.php'; class Collections_AllTests { public static function main() { @@ -26,6 +27,7 @@ class Collections_AllTests { $suite->addTestSuite('TStackTest'); $suite->addTestSuite('TAttributeCollectionTest'); $suite->addTestSuite('TPagedListTest'); + $suite->addTestSuite('TPagedDataSourceTest'); return $suite; } diff --git a/tests/unit/Collections/TPagedDataSourceTest.php b/tests/unit/Collections/TPagedDataSourceTest.php new file mode 100644 index 00000000..f016c275 --- /dev/null +++ b/tests/unit/Collections/TPagedDataSourceTest.php @@ -0,0 +1,71 @@ +<?php +require_once dirname(__FILE__).'/../phpunit.php'; + +Prado::using('System.Collections.TPagedDataSource'); + +/** + * @package System.Collections + */ +class TPagedDataSourceTest extends PHPUnit_Framework_TestCase { + + public function setUp() { + } + + public function tearDown() { + } + + public function testDataSource() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testPageSize() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testCurrentPageIndex() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testAllowPaging() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testAllowCustomPaging() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testVirtualItemCount() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testCount() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testPageCount() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testIsFirstPage() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testIsLastPage() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testFirstIndexInPage() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testDataSourceCount() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + + public function testIterator() { + throw new PHPUnit_Framework_IncompleteTestError(); + } + +} + +?> |