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