This commit is contained in:
2020-10-06 14:27:47 +07:00
commit 586be80cf6
16613 changed files with 3274099 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
class ConfigBundledSuitesCest
{
public function runBundledSuite(CliGuy $I)
{
$I->amInPath('tests/data/bundled_suites');
$I->executeCommand('build');
$I->executeCommand('run -vvv');
$I->seeInShellOutput('OK (1 test');
}
public function runTestByPath(CliGuy $I)
{
$I->amInPath('tests/data/bundled_suites');
$I->executeCommand('run BasicTest.php');
$I->seeInShellOutput('OK (1 test');
}
public function generateTestsForBundledSuite(CliGuy $I)
{
$I->amInPath('tests/data/bundled_suites');
$I->executeFailCommand('generate:cept unit Some');
$I->seeFileFound('SomeCept.php', '.');
$I->deleteFile('SomeCept.php');
$I->seeResultCodeIs(0);
$I->executeFailCommand('generate:cest unit Some');
$I->seeFileFound('SomeCest.php', '.');
$I->deleteFile('SomeCest.php');
$I->seeResultCodeIs(0);
$I->executeFailCommand('generate:test unit Some');
$I->seeResultCodeIs(0);
$I->seeFileFound('SomeTest.php', '.');
$I->deleteFile('SomeTest.php');
}
}