예제 #1
0
 public function testHeal()
 {
     /** @var Healer $healer */
     $healer = $this->game->getCharacterPool()->searchBee();
     $healer->setLifespan(10);
     $healer->heal($healer, $this->game->getHoneyPool());
     $this->assertGreaterThan(10, $healer->getLifespan());
 }
예제 #2
0
 public function testBeforeTakeHit()
 {
     /** @var Worker $bee */
     $bee = $this->game->getCharacterPool()->searchBee();
     $expected = $this->game->getHoneyPool()->amount();
     $bee->beforeTakeHit();
     $actual = $this->game->getHoneyPool()->amount();
     $this->assertGreaterThan($expected, $actual);
 }