diff --git a/src/Framework/TestResult.php b/src/Framework/TestResult.php index 268a8c7d80f..3a50a62cbae 100644 --- a/src/Framework/TestResult.php +++ b/src/Framework/TestResult.php @@ -782,6 +782,7 @@ function_exists('xdebug_start_function_monitor'); } if ($this->beStrictAboutTestsThatDoNotTestAnything && + !$test->doesNotPerformAssertions() && $test->getNumAssertions() == 0) { $risky = true; }