Skip to content

Commit 262b0dc

Browse files
Backport b771002 from PHPUnit 10.1 to PHPUnit 9.6
1 parent 0ef4d1f commit 262b0dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Framework/TestResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ function_exists('xdebug_start_function_monitor');
804804
}
805805

806806
if ($this->beStrictAboutTestsThatDoNotTestAnything &&
807+
!$test->doesNotPerformAssertions() &&
807808
$test->getNumAssertions() === 0) {
808809
$risky = true;
809810
}

0 commit comments

Comments
 (0)