예제 #1
0
 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);
 }
예제 #2
0
 public function fetch_object(ResultSet $results)
 {
     return $results->fetchObject();
 }