public function testShrineIndexPoisonedNotice()
 {
     $player = new Player();
     $player->level = 1;
     $player->health = $player->getMaxHealth();
     $player->addStatus(POISON);
     $this->m_dependencies['current_player'] = function ($c) use($player) {
         return $player;
     };
     $cont = new ShrineController();
     $response = $cont->index($this->m_dependencies);
     $reflection = new \ReflectionProperty(get_class($response), 'data');
     $reflection->setAccessible(true);
     $response_data = $reflection->getValue($response);
     $this->assertContains('form-cure', $response_data['pageParts']);
 }
Example #2
0
 public function maxHarmonize(Player $pc)
 {
     return $pc->getMaxHealth();
 }