From f0f540bdab5a286f6caa5deb0d6a164ce30dfdb1 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Tue, 24 May 2022 08:44:47 +0300 Subject: [PATCH] Make RunUselessTestsCest compatible with PHPUnit 5.7 --- tests/cli/RunUselessTestsCest.php | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/tests/cli/RunUselessTestsCest.php b/tests/cli/RunUselessTestsCest.php index fb41325fef..cccdd35a43 100644 --- a/tests/cli/RunUselessTestsCest.php +++ b/tests/cli/RunUselessTestsCest.php @@ -5,7 +5,7 @@ class RunUselessTestsCest public function checkOutput(CliGuy $I) { $I->amInPath('tests/data/useless'); - $I->executeCommand('run'); + $I->executeCommand('run -v'); // $I->seeInShellOutput('U UselessCept: Make no assertions'); // $I->seeInShellOutput('U UselessCest: Make no assertions'); $I->seeInShellOutput('U UselessTest: Make no assertions'); @@ -107,9 +107,16 @@ public function checkReports(CliGuy $I) $I->seeInShellOutput('UselessTest: Make no assertions............................................Useless'); $I->seeFileFound('report.xml', 'tests/_output'); - $I->seeInThisFile( - "=')) { + $I->seeInThisFile( + "seeInThisFile( + "seeInThisFile('seeInThisFile('seeInThisFile('=')) { + $I->seeInThisFile( + "seeInThisFile( + "seeInThisFile('seeInThisFile('seeInThisFile('