init
This commit is contained in:
60
vendor/codeception/base/tests/data/claypit/tests/powers/MageGuildCest.php
vendored
Normal file
60
vendor/codeception/base/tests/data/claypit/tests/powers/MageGuildCest.php
vendored
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
4
vendor/codeception/base/tests/data/claypit/tests/powers/PowerIsRisingCept.php
vendored
Normal file
4
vendor/codeception/base/tests/data/claypit/tests/powers/PowerIsRisingCept.php
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$I = new PowerGuy($scenario);
|
||||
$I->wantTo('reveal my power');
|
||||
$I->gotThePower();
|
||||
25
vendor/codeception/base/tests/data/claypit/tests/powers/PowerUpCest.php
vendored
Normal file
25
vendor/codeception/base/tests/data/claypit/tests/powers/PowerUpCest.php
vendored
Normal 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]);
|
||||
}
|
||||
}
|
||||
2
vendor/codeception/base/tests/data/claypit/tests/powers/_bootstrap.php
vendored
Normal file
2
vendor/codeception/base/tests/data/claypit/tests/powers/_bootstrap.php
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Here you can initialize variables that will for your tests
|
||||
Reference in New Issue
Block a user