summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorknut <>2007-05-30 13:37:54 +0000
committerknut <>2007-05-30 13:37:54 +0000
commit1e09d721ec541df81de68989eed42c7b72ce8d7c (patch)
treeb84b6c4269a52f8a4c938340950900f922a133af /tests/unit
parent50f4cc47a96fd6c3f5818a5a70d585f3964f99cc (diff)
resolved #631
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Collections/TQueueTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/Collections/TQueueTest.php b/tests/unit/Collections/TQueueTest.php
index d0fe1af0..1c755480 100644
--- a/tests/unit/Collections/TQueueTest.php
+++ b/tests/unit/Collections/TQueueTest.php
@@ -118,6 +118,13 @@ class TQueueTest extends PHPUnit_Framework_TestCase {
$queue = new TQueue(array(1, 2, 3));
self::assertEquals(3, $queue->getCount());
}
+
+ public function testCountable() {
+ $queue = new TQueue();
+ self::assertEquals(0, count($queue));
+ $queue = new TQueue(array(1, 2, 3));
+ self::assertEquals(3, count($queue));
+ }
}