Skip to content

Commit

Permalink
Backport b771002 from PHPUnit 10.1 to PHPUnit 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 14, 2023
1 parent 0ef4d1f commit 262b0dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Framework/TestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ function_exists('xdebug_start_function_monitor');
}

if ($this->beStrictAboutTestsThatDoNotTestAnything &&
!$test->doesNotPerformAssertions() &&
$test->getNumAssertions() === 0) {
$risky = true;
}
Expand Down

0 comments on commit 262b0dc

Please sign in to comment.