public function testIsTraversableCountableIterator() { $dwoo = new Dwoo_Core(); $data = new TestCountableIterator(array()); $this->assertEquals(true, $dwoo->isTraversable($data)); $this->assertEquals(0, $dwoo->isTraversable($data, true)); $data = new TestCountableIterator(array('moo')); $this->assertEquals(true, $dwoo->isTraversable($data)); $this->assertEquals(1, $dwoo->isTraversable($data, true)); }