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());
 }
Example #3
0
 /**
  * @dataProvider getGameTestCases
  */
 public function testGames($expectedScore, $rolls)
 {
     $game = new Game($rolls);
     $this->assertEquals($expectedScore, $game->score());
 }