From 262b0dc2bbee91a5d4a66dbb80dc4fa34dfe8a96 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 14 Apr 2023 10:40:15 +0200 Subject: [PATCH] Backport b771002b7b1022610272f7789f9b0603948573f7 from PHPUnit 10.1 to PHPUnit 9.6 --- src/Framework/TestResult.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Framework/TestResult.php b/src/Framework/TestResult.php index 4fde29facb6..22150a5a9a0 100644 --- a/src/Framework/TestResult.php +++ b/src/Framework/TestResult.php @@ -804,6 +804,7 @@ function_exists('xdebug_start_function_monitor'); } if ($this->beStrictAboutTestsThatDoNotTestAnything && + !$test->doesNotPerformAssertions() && $test->getNumAssertions() === 0) { $risky = true; }