This commit is contained in:
2020-03-27 10:13:51 +07:00
commit da1024a5b3
16614 changed files with 3274282 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<?php
class MageGuildCest
{
/**
* @env magic
* @env dark
* @param PowerGuy $I
*/
public function darkPower(PowerGuy $I)
{
$I->castFireball();
}
/**
* @env magic
* @env white
* @param PowerGuy $I
*/
public function whitePower(PowerGuy $I)
{
$I->castFireball();
}
/**
* @env magic
* @env green
* @param PowerGuy $I
*/
public function greenPower(PowerGuy $I)
{
$I->castFireball();
}
/**
* @env whisky
* @env red
* @param PowerGuy $I
*/
public function redLabel(PowerGuy $I)
{
$I->castFireball();
}
/**
* @env dark
* @env whisky
* @param PowerGuy $I
*/
public function blackLabel(PowerGuy $I)
{
$I->castFireball();
}
public function powerOfTheUniverse(PowerGuy $I)
{
$I->castFireball();
}
}

View File

@@ -0,0 +1,4 @@
<?php
$I = new PowerGuy($scenario);
$I->wantTo('reveal my power');
$I->gotThePower();

View File

@@ -0,0 +1,25 @@
<?php
class PowerUpCest
{
public function iHaveNoPower(PowerGuy $I)
{
$I->expectException('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]);
}
}

View File

@@ -0,0 +1,2 @@
<?php
// Here you can initialize variables that will for your tests