Skip to content

Commit e6b2be7

Browse files
Remove code path for CoversClass and CoversFunction attributes which cannot be used on test methods
1 parent b0736b5 commit e6b2be7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Metadata/Api/CodeCoverage.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ public function shouldCodeCoverageBeCollectedFor(string $className, string $meth
116116
return false;
117117
}
118118

119-
if ($metadataForMethod->isCoversClass()->isNotEmpty() ||
120-
$metadataForMethod->isCoversFunction()->isNotEmpty()) {
121-
return true;
122-
}
123-
124119
if ($metadataForClass->isCoversNothing()->isNotEmpty()) {
125120
return false;
126121
}

0 commit comments

Comments
 (0)