/** * @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(); }
public function toDie() { $this->beforeDead(); $this->game->finish(); }