Exemple #1
0
 /**
  * @param RacesTable $racesTable
  * @return int
  */
 public function getSenses(RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     return $racesTable->getSenses($this->getRaceCode(), $this->getSubraceCode());
 }
 /**
  * @param Knack $knack
  * @param RaceCode $raceCode
  * @param SubRaceCode $subRaceCode
  * @param RacesTable $racesTable
  */
 public function __construct(Knack $knack, RaceCode $raceCode, SubRaceCode $subRaceCode, RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     parent::__construct($knack->getValue() + $racesTable->getSenses($raceCode, $subRaceCode));
 }
 /**
  * @test
  * @dataProvider provideSensesOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param int $senses
  */
 public function I_can_get_senses_of_any_race($race, $subrace, $senses)
 {
     $racesTable = new RacesTable();
     self::assertSame($senses, $racesTable->getSenses(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
 }