Skip to content

Commit

Permalink
Fix tests with PHPUnit 5.7
Browse files Browse the repository at this point in the history
PHPUnit 5.7 handles filter pattern differently
  • Loading branch information
Naktibalda committed Jan 31, 2021
1 parent 4d62088 commit 5d0edff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cli/RunCest.php
Expand Up @@ -44,17 +44,17 @@ public function runTestsDoesntFail(\CliGuy $I)
public function runTestsWithFilterDoesntFail(\CliGuy $I)
{
$I->amInPath(codecept_data_dir('dir_matches_suite'));
$I->executeCommand('run tests:^Success');
$I->executeCommand('run tests:^success');
$I->seeInShellOutput('SuccessCest');

$I->executeCommand('run tests/:^Success');
$I->executeCommand('run tests/:^success');
$I->seeInShellOutput('SuccessCest');
}

public function filterTestsWithoutSpecifyingSuite(\CliGuy $I)
{
$I->amInPath(codecept_data_dir('dir_matches_suite'));
$I->executeCommand('run :^Success');
$I->executeCommand('run :^success');
$I->seeInShellOutput('SuccessCest');
}

Expand Down

0 comments on commit 5d0edff

Please sign in to comment.