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