We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0102d46 commit cf61253Copy full SHA for cf61253
src/Framework/TestResult.php
@@ -568,8 +568,13 @@ public function run(Test $test): void
568
569
$annotations = $test->getAnnotations();
570
571
- if (isset($annotations['class']['coversNothing']) || isset($annotations['method']['coversNothing'])) {
+ if (isset($annotations['method']['coversNothing'])) {
572
$coversNothing = true;
573
+ } elseif (isset($annotations['class']['coversNothing'])) {
574
+ if (!isset($annotations['method']['covers'])) {
575
+ // method covers takes priority over class coversNothing
576
+ $coversNothing = true;
577
+ }
578
}
579
580
0 commit comments