8000 skip tests with failure and error states too · symfony/symfony@f3bb206 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3bb206

Browse files
committed
skip tests with failure and error states too
1 parent a89f60b commit f3bb206

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
@@ -175,7 +175,7 @@ public function endTest(\PHPUnit_Framework_Test $test, $time)
175175
if ($this->expectedDeprecations) {
176176
restore_error_handler();
177177

178-
if (!in_array($test->getStatus(), array(\PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, \PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE), true)) {
178+
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)) {
179179
try {
180180
$prefix = "@expectedDeprecation:\n ";
181181
$test->assertStringMatchesFormat($prefix.implode("\n ", $this->expectedDeprecations), $prefix.implode("\n ", $this->gatheredDeprecations));

0 commit comments

Comments
 (0)
0