summaryrefslogtreecommitdiff
path: root/tests/unit/Collections
diff options
context:
space:
mode:
authorknut <>2007-06-04 23:33:06 +0000
committerknut <>2007-06-04 23:33:06 +0000
commit996bb8664856b302c96e19c6899010ea72ababe6 (patch)
tree0daad116697c7c9f58bc74244277457ede412348 /tests/unit/Collections
parentb7d5fc392611f0cb7f1ff6d87b758cb9572c7806 (diff)
added more unit test stubs
Diffstat (limited to 'tests/unit/Collections')
-rw-r--r--tests/unit/Collections/AllTests.php2
-rw-r--r--tests/unit/Collections/TPagedDataSourceTest.php71
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();
+ }
+
+}
+
+?>