/** * @test */ public function testAnswer() { $text = 'text'; $move = Answer::create($text); $this->assertEquals($text, $move->getText()); }
/** * @test */ public function testLeaveWhenOver() { $this->hangman->startGame($this->playerOneId); $this->hangman->play($this->playerOneId, Answer::create('ASS--KICKER')); $return = $this->hangman->leaveGame($this->playerOneId); $this->assertNull($return); }