Example #1
0
 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);
 }
Example #2
0
 public function fetch_both(ResultSet $results)
 {
     return $results->fetchBoth();
 }