コード例 #1
0
ファイル: Round.php プロジェクト: sam-higton/F1Data
 public function fetchDrivers()
 {
     $drivers = new DriverCollection();
     $drivers->getRoundDrivers($this->year, $this->roundNo);
     $this->drivers = $drivers;
     return $this;
 }
コード例 #2
0
 public function testRounds()
 {
     $this->driverCollection->getRoundDrivers(2008, 1);
     $this->assertEquals(22, $this->driverCollection->count());
 }