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()); }
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); }