示例#1
0
 /**
  * @param RacesTable $racesTable
  * @return bool
  */
 public function hasInfravision(RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     return $racesTable->hasInfravision($this->getRaceCode(), $this->getSubraceCode());
 }
 /**
  * @test
  * @dataProvider provideInfravisionOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param bool $infravision
  */
 public function I_can_get_infravision_of_any_race($race, $subrace, $infravision)
 {
     $racesTable = new RacesTable();
     self::assertSame($infravision, $racesTable->hasInfravision(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
 }