summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknut <>2007-05-30 23:03:25 +0000
committerknut <>2007-05-30 23:03:25 +0000
commitf71f9562d2ed0839f48bbf1bda7a80d0bc157778 (patch)
treee97ed4a60c13dfda492afb1c879fef70ec000238
parente0b8de519a737afa5765a7bda4856c045a8eb984 (diff)
added stubs for TPageListTest
-rw-r--r--.gitattributes1
-rw-r--r--tests/unit/Collections/AllTests.php2
-rw-r--r--tests/unit/Collections/TPagedListTest.php100
3 files changed, 103 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 7faee17e..6af31dfd 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2799,6 +2799,7 @@ tests/unit/Collections/AllTests.php -text
tests/unit/Collections/TAttributeCollectionTest.php -text
tests/unit/Collections/TListTest.php -text
tests/unit/Collections/TMapTest.php -text
+tests/unit/Collections/TPagedListTest.php -text
tests/unit/Collections/TQueueTest.php -text
tests/unit/Collections/TStackTest.php -text
tests/unit/Data/TDbCommandTest.php -text
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 @@
+<?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();
+ }
+
+}
+
+?>