File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/tests/cli/ExtensionsCest.php
Back
<?php class ExtensionsCest { // tests public function useAlternativeFormatter(CliGuy $I) { $I->wantTo('use alternative formatter delivered through extensions'); $I->amInPath('tests/data/sandbox'); $I->executeCommand('run tests/dummy/FileExistsCept.php -c codeception_extended.yml'); $I->dontSeeInShellOutput("Check config"); $I->seeInShellOutput('[+] FileExistsCept'); $I->seeInShellOutput('Modules used: Filesystem, DumbHelper'); } public function reRunFailedTests(CliGuy $I) { $ds = DIRECTORY_SEPARATOR; $I->amInPath('tests/data/sandbox'); $I->executeCommand('run unit FailingTest.php -c codeception_extended.yml --no-exit'); $I->seeInShellOutput('FAILURES'); $I->seeFileFound('failed', 'tests/_output'); $I->seeFileContentsEqual(<<<EOF tests{$ds}unit{$ds}FailingTest.php:testMe EOF ); $I->executeCommand('run -g failed -c codeception_extended.yml --no-exit'); $I->seeInShellOutput('Tests: 1, Assertions: 1, Failures: 1'); } public function checkIfExtensionsReceiveCorrectOptions(CliGuy $I) { $I->wantTo('check if extensions receive correct options'); $I->amInPath('tests/data/sandbox'); $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml'); $I->seeInShellOutput('Low verbosity'); $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -v'); $I->seeInShellOutput('Medium verbosity'); $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -vv'); $I->seeInShellOutput('High verbosity'); $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -vvv'); $I->seeInShellOutput('Extreme verbosity'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings