Skip to content

Commit c467722

Browse files
Merge branch '6.4' into 7.3
* 6.4: Fix
2 parents f4e417a + 5cae756 commit c467722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function endTest($test, $time): void
306306
}
307307

308308
if (self::$expectedDeprecations) {
309-
if (!$test instanceof TestCase || !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
309+
if ($test instanceof TestCase && !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
310310
$test->addToAssertionCount(\count(self::$expectedDeprecations));
311311
}
312312

0 commit comments

Comments
 (0)