public function testFetchObject() { $results = new ResultSet(self::$columns, self::$entries); $i = 0; while (($row = $results->fetchObject()) !== false) { $this->assertEquals((object) array_combine(self::$columns, self::$entries[$i++]), $row); } $this->assertEquals(count(self::$entries), $i); }
public function fetch_object(ResultSet $results) { return $results->fetchObject(); }