Ejemplo n.º 1
0
 /**
  * @test
  * @dataProvider provideSizeOfRace
  *
  * @param string $race
  * @param string $subrace
  * @param int $maleSize
  * @param int $femaleSize
  */
 public function I_can_get_size_of_any_race($race, $subrace, $maleSize, $femaleSize)
 {
     $racesTable = new RacesTable();
     $femaleModifiersTable = new FemaleModifiersTable();
     self::assertSame($maleSize, $racesTable->getMaleSize(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
     self::assertSame($maleSize, $racesTable->getSize(RaceCode::getIt($race), SubRaceCode::getIt($subrace), GenderCode::getIt(GenderCode::MALE), $femaleModifiersTable));
     self::assertSame($femaleSize, $racesTable->getFemaleSize(RaceCode::getIt($race), SubRaceCode::getIt($subrace), $femaleModifiersTable));
     self::assertSame($femaleSize, $racesTable->getSize(RaceCode::getIt($race), SubRaceCode::getIt($subrace), GenderCode::getIt(GenderCode::FEMALE), $femaleModifiersTable));
 }