/** * @test * @dataProvider raceToCharisma * * @param string $raceCode * @param int $charisma */ public function I_can_get_female_charisma_of_any_race($raceCode, $charisma) { $table = new FemaleModifiersTable(); self::assertSame($charisma, $table->getCharisma($raceCode)); }
/** * @param RaceCode $raceCode * @param SubraceCode $subraceCode * @param FemaleModifiersTable $femaleModifiersTable * @return int */ public function getFemaleCharisma(RaceCode $raceCode, SubRaceCode $subraceCode, FemaleModifiersTable $femaleModifiersTable) { return $this->getMaleCharisma($raceCode, $subraceCode) + $femaleModifiersTable->getCharisma($raceCode); }