init
This commit is contained in:
40
vendor/codeception/base/tests/cli/ConfigParamsCest.php
vendored
Normal file
40
vendor/codeception/base/tests/cli/ConfigParamsCest.php
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
class ConfigParamsCest
|
||||
{
|
||||
public function checkYamlParamsPassed(CliGuy $I)
|
||||
{
|
||||
$I->amInPath('tests/data/params');
|
||||
$I->executeCommand('run -c codeception_yaml.yml');
|
||||
$I->seeInShellOutput('OK (1 test');
|
||||
}
|
||||
|
||||
public function checkDotEnvParamsPassed(CliGuy $I)
|
||||
{
|
||||
$I->amInPath('tests/data/params');
|
||||
$I->executeCommand('run -c codeception_dotenv.yml');
|
||||
$I->seeInShellOutput('OK (1 test');
|
||||
}
|
||||
|
||||
public function checkComplexDotEnvParamsPassed(CliGuy $I)
|
||||
{
|
||||
$I->amInPath('tests/data/params');
|
||||
$I->executeCommand('run -c codeception_dotenv2.yml');
|
||||
$I->seeInShellOutput('OK (1 test');
|
||||
}
|
||||
|
||||
public function checkEnvParamsPassed(CliGuy $I)
|
||||
{
|
||||
$I->amInPath('tests/data/params');
|
||||
$I->executeCommand('run --no-exit');
|
||||
$I->seeInShellOutput('FAILURES');
|
||||
$I->seeInShellOutput("Failed asserting that an array contains 'val1'");
|
||||
}
|
||||
|
||||
public function checkParamsPassedInSelf(CliGuy $I)
|
||||
{
|
||||
$I->amInPath('tests/data/params');
|
||||
$I->executeCommand('run -c codeception_self.yml');
|
||||
$I->seeInShellOutput('OK (1 test');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user