Skip to content

Commit

Permalink
Merge branch '11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 10, 2024
2 parents cef82dc + f87f5bf commit e91fafb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/Framework/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,30 +349,30 @@ public function runInSeparateProcess(TestCase $test, bool $runEntireClass, bool
*/
private function hasCoverageMetadata(string $className, string $methodName): bool
{
$metadata = MetadataRegistry::parser()->forClassAndMethod($className, $methodName);

if ($metadata->isCovers()->isNotEmpty()) {
return true;
}
foreach (MetadataRegistry::parser()->forClassAndMethod($className, $methodName) as $metadata) {
if ($metadata->isCovers()) {
return true;
}

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

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

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

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

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

return false;
Expand Down

0 comments on commit e91fafb

Please sign in to comment.