init
This commit is contained in:
28
vendor/codeception/base/tests/cli/SecondTestIsExecutedWhenTheFirstTestFailsCest.php
vendored
Normal file
28
vendor/codeception/base/tests/cli/SecondTestIsExecutedWhenTheFirstTestFailsCest.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
class SecondTestIsExecutedWhenTheFirstTestFailsCest
|
||||
{
|
||||
public function testIsExecuted(CliGuy $I)
|
||||
{
|
||||
$I->wantTo('see that the second test is executed');
|
||||
$I->amInPath('tests/data/first_test_fails');
|
||||
$I->executeFailCommand('run --xml --no-ansi');
|
||||
$I->seeInShellOutput('Tests: 2, Assertions: 1, Errors: 1');
|
||||
$I->seeInShellOutput('E twoTestsCest: Failing');
|
||||
$I->seeInShellOutput('+ twoTestsCest: Successful');
|
||||
}
|
||||
|
||||
public function endTestEventIsEmitted(CliGuy $I)
|
||||
{
|
||||
if (\PHPUnit\Runner\Version::series() >= 7) {
|
||||
throw new \Codeception\Exception\Skip('Not for PHPUnit 7');
|
||||
}
|
||||
$I->wantTo('see that all start and end events are emitted');
|
||||
$I->amInPath('tests/data/first_test_fails');
|
||||
$I->executeFailCommand('run --xml --no-ansi --report -o "reporters: report: CustomReporter"');
|
||||
$I->seeInShellOutput('STARTED: twoTestsCest: Failing');
|
||||
$I->seeInShellOutput('ENDED: twoTestsCest: Failing');
|
||||
$I->seeInShellOutput('STARTED: twoTestsCest: Successful');
|
||||
$I->seeInShellOutput('ENDED: twoTestsCest: Successful');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user