/** * @test * @dataProvider provideIntelligenceOfRace * * @param string $race * @param string $subrace * @param int $maleIntelligence * @param int $femaleIntelligence */ public function I_can_get_intelligence_of_any_race($race, $subrace, $maleIntelligence, $femaleIntelligence) { $racesTable = new RacesTable(); self::assertSame($maleIntelligence, $racesTable->getMaleIntelligence(RaceCode::getIt($race), SubRaceCode::getIt($subrace))); self::assertSame($femaleIntelligence, $racesTable->getFemaleIntelligence(RaceCode::getIt($race), SubRaceCode::getIt($subrace), new FemaleModifiersTable())); }