public function testFetchBoth() { $results = new ResultSet(self::$columns, self::$entries); $i = 0; while (($row = $results->fetchBoth()) !== false) { $entry = self::$entries[$i++]; $this->assertEquals(array_merge($entry, array_combine(self::$columns, $entry)), $row); } $this->assertEquals(count(self::$entries), $i); }
public function fetch_both(ResultSet $results) { return $results->fetchBoth(); }