コード例 #1
0
ファイル: Race.php プロジェクト: jaroslavtyc/drd-plus-races
 /**
  * @param RacesTable $racesTable
  * @return string
  */
 public function getRemarkableSense(RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     return $racesTable->getRemarkableSense($this->getRaceCode(), $this->getSubraceCode());
 }
コード例 #2
0
 /**
  * @test
  * @dataProvider provideRemarkableSenseOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param string $remarkableSense
  */
 public function I_can_get_remarkable_sense_of_any_race($race, $subrace, $remarkableSense)
 {
     $racesTable = new RacesTable();
     self::assertSame($remarkableSense, $racesTable->getRemarkableSense(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
 }