init
This commit is contained in:
8
vendor/codeception/base/tests/data/params/codeception.yml
vendored
Normal file
8
vendor/codeception/base/tests/data/params/codeception.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: .
|
||||
data: .
|
||||
support: tests/_support
|
||||
params:
|
||||
- environment
|
||||
9
vendor/codeception/base/tests/data/params/codeception_dotenv.yml
vendored
Normal file
9
vendor/codeception/base/tests/data/params/codeception_dotenv.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: .
|
||||
data: .
|
||||
support: tests/_support
|
||||
params:
|
||||
- environment
|
||||
- params.env
|
||||
8
vendor/codeception/base/tests/data/params/codeception_dotenv2.yml
vendored
Normal file
8
vendor/codeception/base/tests/data/params/codeception_dotenv2.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: .
|
||||
data: .
|
||||
support: tests/_support
|
||||
params:
|
||||
- params.env.example
|
||||
15
vendor/codeception/base/tests/data/params/codeception_self.yml
vendored
Normal file
15
vendor/codeception/base/tests/data/params/codeception_self.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: .
|
||||
data: .
|
||||
support: tests/_support
|
||||
params:
|
||||
- env
|
||||
- params.yml
|
||||
|
||||
modules:
|
||||
enabled:
|
||||
- \Helper\Dummy:
|
||||
vars: ["%KEY1%", "%KEY2%"]
|
||||
path: "%PATH%"
|
||||
9
vendor/codeception/base/tests/data/params/codeception_yaml.yml
vendored
Normal file
9
vendor/codeception/base/tests/data/params/codeception_yaml.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: .
|
||||
data: .
|
||||
support: tests/_support
|
||||
params:
|
||||
- env
|
||||
- params.yml
|
||||
2
vendor/codeception/base/tests/data/params/params.env
vendored
Normal file
2
vendor/codeception/base/tests/data/params/params.env
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
KEY1=val1
|
||||
KEY2=val2
|
||||
6
vendor/codeception/base/tests/data/params/params.env.example
vendored
Normal file
6
vendor/codeception/base/tests/data/params/params.env.example
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
KEY="val"
|
||||
|
||||
|
||||
# use inheritance and comments
|
||||
KEY1="${KEY}1"
|
||||
KEY2="${KEY}2"
|
||||
3
vendor/codeception/base/tests/data/params/params.yml
vendored
Normal file
3
vendor/codeception/base/tests/data/params/params.yml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
parameters:
|
||||
KEY1: val1
|
||||
KEY2: val2
|
||||
26
vendor/codeception/base/tests/data/params/tests/_support/DummyTester.php
vendored
Normal file
26
vendor/codeception/base/tests/data/params/tests/_support/DummyTester.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Inherited Methods
|
||||
* @method void wantToTest($text)
|
||||
* @method void wantTo($text)
|
||||
* @method void execute($callable)
|
||||
* @method void expectTo($prediction)
|
||||
* @method void expect($prediction)
|
||||
* @method void amGoingTo($argumentation)
|
||||
* @method void am($role)
|
||||
* @method void lookForwardTo($achieveValue)
|
||||
* @method void comment($description)
|
||||
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
|
||||
*
|
||||
* @SuppressWarnings(PHPMD)
|
||||
*/
|
||||
class DummyTester extends \Codeception\Actor
|
||||
{
|
||||
use _generated\DummyTesterActions;
|
||||
|
||||
/**
|
||||
* Define custom actions here
|
||||
*/
|
||||
}
|
||||
27
vendor/codeception/base/tests/data/params/tests/_support/Helper/Dummy.php
vendored
Normal file
27
vendor/codeception/base/tests/data/params/tests/_support/Helper/Dummy.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Helper;
|
||||
|
||||
// here you can define custom actions
|
||||
// all public methods declared in helper class will be available in $I
|
||||
|
||||
use Codeception\TestInterface;
|
||||
|
||||
class Dummy extends \Codeception\Module
|
||||
{
|
||||
public function _before(TestInterface $test)
|
||||
{
|
||||
$this->debug($this->config);
|
||||
}
|
||||
|
||||
public function seePathIsSet()
|
||||
{
|
||||
$this->assertNotEmpty($this->config['path']);
|
||||
}
|
||||
|
||||
public function seeVarsAreSet()
|
||||
{
|
||||
$vars = $this->config['vars'];
|
||||
$this->assertContains('val1', $vars);
|
||||
$this->assertContains('val2', $vars);
|
||||
}
|
||||
}
|
||||
1
vendor/codeception/base/tests/data/params/tests/_support/_generated/.gitignore
vendored
Normal file
1
vendor/codeception/base/tests/data/params/tests/_support/_generated/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.php
|
||||
6
vendor/codeception/base/tests/data/params/tests/dummy.suite.yml
vendored
Normal file
6
vendor/codeception/base/tests/data/params/tests/dummy.suite.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
class_name: DummyTester
|
||||
modules:
|
||||
enabled:
|
||||
- \Helper\Dummy:
|
||||
vars: ["%KEY1%", "%KEY2%"]
|
||||
path: "%PATH%"
|
||||
4
vendor/codeception/base/tests/data/params/tests/dummy/DummyCept.php
vendored
Normal file
4
vendor/codeception/base/tests/data/params/tests/dummy/DummyCept.php
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$I = new DummyTester($scenario);
|
||||
$I->seePathIsSet();
|
||||
$I->seeVarsAreSet();
|
||||
Reference in New Issue
Block a user