コード例 #1
0
 /** @depends testSeasons */
 public function testGetDriver(DriverCollection $dc)
 {
     $driver = $dc->getDriver("glock");
     $this->assertEquals("Timo", $driver->getGivenName());
     $driver = $dc->getDriver("nasr");
     $this->assertEquals("Felipe", $driver->getGivenName());
 }
コード例 #2
0
ファイル: Round.php プロジェクト: sam-higton/F1Data
 public function fetchDrivers()
 {
     $drivers = new DriverCollection();
     $drivers->getRoundDrivers($this->year, $this->roundNo);
     $this->drivers = $drivers;
     return $this;
 }