コード例 #1
0
 /**
  * @test
  * @dataProvider provideStrengthOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param int $maleStrength
  * @param int $femaleStrength
  */
 public function I_can_get_strength_of_any_race($race, $subrace, $maleStrength, $femaleStrength)
 {
     $racesTable = new RacesTable();
     self::assertSame($maleStrength, $racesTable->getMaleStrength(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
     self::assertSame($femaleStrength, $racesTable->getFemaleStrength(RaceCode::getIt($race), SubRaceCode::getIt($subrace), new FemaleModifiersTable()));
 }