score(); } for ($i = 0; $i < $playerTwoPoints; $i++) { $jane->score(); } $this->assertEquals($score, $match->score()); } public function scores() { return [ [0, 0, 'love-love'], [1, 0, 'fifteen-love'], [1, 1, 'fifteen-fifteen'], [2, 0, 'thirty-love'], [3, 0, 'forty-love'], [2, 2, 'thirty-thirty'], [3, 3, 'deuce'], [4, 4, 'deuce'], [5, 5, 'deuce'], [4, 3, 'Advantage: John'], [3, 4, 'Advantage: Jane'], [4, 0, 'Winner: John'], [0, 4, 'Winner: Jane'], ]; } }