Example #1
0
 /**
  * @param RacesTable $racesTable
  * @return int
  */
 public function getHeightInCm(RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     return $racesTable->getHeightInCm($this->getRaceCode(), $this->getSubraceCode());
 }
 /**
  * @test
  * @dataProvider provideHeightOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param int $heightInCm
  */
 public function I_can_get_height_of_any_race($race, $subrace, $heightInCm)
 {
     $racesTable = new RacesTable();
     self::assertSame($heightInCm, $racesTable->getHeightInCm(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
 }