public function testPerfectGame() { $this->markTestSkipped(); $this->rollMany(12, 10); $this->assertEquals(300, $this->game->score()); }
public function testAllStrikes() { $game = new Game("XXXXXXXXXXXX"); $this->assertEquals(300, $game->score()); }
/** * @dataProvider getGameTestCases */ public function testGames($expectedScore, $rolls) { $game = new Game($rolls); $this->assertEquals($expectedScore, $game->score()); }