Skip to content

Commit 3464861

Browse files
CI fixes
1 parent 2583bf8 commit 3464861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Legacy/SymfonyTestsListenerTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function endTest($test, $time)
253253
$groups = Test::getGroups($className, $test->getName(false));
254254

255255
if ($this->checkNumAssertions) {
256-
if (!self::$expectedDeprecations && !$test->getNumAssertions()) {
256+
if (!self::$expectedDeprecations && !$test->getNumAssertions() && $test->getTestResultObject()->noneSkipped()) {
257257
$test->getTestResultObject()->addFailure($test, new RiskyTestError('This test did not perform any assertions'), $time);
258258
}
259259

0 commit comments

Comments
 (0)