/** * @test * @dataProvider provideWeightOfRace * * @param string $race * @param string $subrace * @param int $maleWeightInKg * @param int $femaleWeightInKg */ public function I_can_get_weight_of_any_race($race, $subrace, $maleWeightInKg, $femaleWeightInKg) { $racesTable = new RacesTable(); self::assertSame($maleWeightInKg, $racesTable->getMaleWeightInKg(RaceCode::getIt($race), SubRaceCode::getIt($subrace))); $femaleModifiersTable = new FemaleModifiersTable(); $weightTable = new WeightTable(); self::assertSame($femaleWeightInKg, $racesTable->getFemaleWeightInKg(RaceCode::getIt($race), SubRaceCode::getIt($subrace), $femaleModifiersTable, $weightTable)); self::assertSame($maleWeightInKg, $racesTable->getWeightInKg(RaceCode::getIt($race), SubRaceCode::getIt($subrace), GenderCode::getIt(GenderCode::MALE), $femaleModifiersTable, $weightTable)); self::assertSame($femaleWeightInKg, $racesTable->getWeightInKg(RaceCode::getIt($race), SubRaceCode::getIt($subrace), GenderCode::getIt(GenderCode::FEMALE), $femaleModifiersTable, $weightTable)); }