Пример #1
0
 /**
  * @expectedException \frontend\exceptions\FinishedGameException
  */
 public function testHitAlreadyFinishedGame_result_Exception()
 {
     $this->game->getCharacterPool()->addBee(new Drone($this->game));
     $this->game->start();
     $this->game->getCharacterPool()->killAllBees();
     $this->game->finish();
     $this->game->hit();
 }
Пример #2
0
 public function toDie()
 {
     $this->beforeDead();
     $this->game->finish();
 }