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; }