Skip to content

Commit

Permalink
Consider #[CoversTrait] attribute for risky test check
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 10, 2024
1 parent e800f0c commit cef82dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Framework/TestRunner.php
Expand Up @@ -359,6 +359,10 @@ private function hasCoverageMetadata(string $className, string $methodName): boo
return true;
}

if ($metadata->isCoversTrait()->isNotEmpty()) {
return true;
}

if ($metadata->isCoversMethod()->isNotEmpty()) {
return true;
}
Expand Down

0 comments on commit cef82dc

Please sign in to comment.