| 12345678910111213141516171819202122232425 |
- <?php
- class PowerUpCest
- {
- public function iHaveNoPower(PowerGuy $I)
- {
- $I->expectThrowable('Exception', function() use ($I) {
- $I->gotThePower();
- });
- }
- /**
- * @prepare drinkBluePotion
- * @param PowerGuy $I
- */
- public function iGotBluePotion(PowerGuy $I)
- {
- $I->gotThePower();
- }
- protected function drinkBluePotion(\Codeception\Module\PowerHelper $helper)
- {
- $helper->_reconfigure(['has_power' => true]);
- }
- }
|