8000 bug #21138 [PhpUnitBridge] skip tests with failure and error states t… · symfony/symfony@8c2a67f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c2a67f

Browse files
committed
bug #21138 [PhpUnitBridge] skip tests with failure and error states too (xabbuh)
This PR was merged into the 3.2 branch. Discussion ---------- [PhpUnitBridge] skip tests with failure and error states too | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | I was actually wrong by not excluding failures and errors to in #21121. Commits ------- f3bb206 skip tests with failure and error states too
2 parents da86c93 + f3bb206 commit 8c2a67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function endTest(\PHPUnit_Framework_Test $test, $time)
177177
if ($this->expectedDeprecations) {
178178
restore_error_handler();
179179

180-
if (!in_array($test->getStatus(), array(\PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, \PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE), true)) {
180+
if (!in_array($test->getStatus(), array(\PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, \PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE, \PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE, \PHPUnit_Runner_BaseTestRunner::STATUS_ERROR), true)) {
181181
try {
182182
$prefix = "@expectedDeprecation:\n ";
183183
$test->assertStringMatchesFormat($prefix.implode("\n ", $this->expectedDeprecations), $prefix.implode("\n ", $this->gatheredDeprecations));

0 commit comments

Comments
 (0)
0