public function testTryRightWord() { $game = new Game(new Word('filament'), 0, 5); $this->assertInstanceOf('hangman\\Word', $game->getWord()); $this->assertTrue($game->tryWord('filament')); $this->assertEquals(0, $game->getAttempts()); }
public function testTryWord() { $game = new Game(new Word('php')); $this->assertInstanceOf('Hangman\\Word', $game->getWord()); $this->assertTrue($game->tryWord('php')); $this->assertEquals(0, $game->getAttempts()); }