Пример #1
0
 /**
  * @test
  */
 public function testAnswer()
 {
     $text = 'text';
     $move = Answer::create($text);
     $this->assertEquals($text, $move->getText());
 }
Пример #2
0
 /**
  * @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);
 }