public function runOneTestFromCest(\CliGuy $I) { $I->amInPath('tests/data/sandbox'); $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic'); $I->seeShellOutputMatches("~\\(AnotherCest.optimistic\\)\\s*?Ok~"); $I->dontSeeInShellOutput('AnotherCest.pessimistic'); }
public function runOneTestFromCest(\CliGuy $I) { $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic'); $I->seeShellOutputMatches("~\(AnotherCest::optimistic\)\s*?Ok~"); $I->dontSeeInShellOutput('AnotherCest::pessimistic'); }
<?php $I = new CliGuy($scenario); $I->wantTo('run skipped test'); $I->amInPath('tests/data/sandbox'); $I->executeCommand('run skipped SkipMeCept.php'); $I->seeShellOutputMatches("~\\(SkipMeCept\\)\\s*?Skipped~"); $I->seeInShellOutput('OK, but incomplete, skipped, or risky tests!');
<?php $I = new CliGuy($scenario); $I->wantTo('execute incomplete test'); $I->amInPath('tests/data/sandbox'); $I->executeCommand('run skipped IncompleteMeCept.php'); $I->seeShellOutputMatches("~\\(IncompleteMeCept.php\\)\\s*?Incomplete~"); $I->seeInShellOutput('OK, but incomplete or skipped tests!');
<?php $I = new CliGuy($scenario); $I->wantTo('execute incomplete test'); $I->amInPath('tests/data/sandbox'); $I->executeCommand('run skipped IncompleteMeCept.php'); $I->seeShellOutputMatches("~\\(IncompleteMeCept\\)[\\s\\.]*?Incomplete~"); $I->seeInShellOutput('OK, but incomplete, skipped, or risky tests!');