public function testFetchAll() { $this->assertType("array", $this->object->fetchAll()); $this->assertEquals(2, count($this->object->fetchAll(2))); $res = $this->object->fetchAll(2, 1); $this->assertEquals(2, count($res)); $this->assertEquals("Article", $res[0]->name); $this->assertType("Page", $res[0]); }