public function testFieldSeek() { $results = new ResultSet(self::$columns, self::$entries); $success = $results->fieldSeek(2); $this->assertTrue($success !== false); $field = $results->fetchField(); $this->assertEquals(self::$columns[2], $field->name); }
public function fetch_field(ResultSet $results) { return $results->fetchField(); }