remove method name on coversClass

This commit is contained in:
danilopolani
2022-03-05 17:03:45 +01:00
parent a894386b49
commit 27baad82d0
3 changed files with 2 additions and 7 deletions

View File

@ -26,10 +26,6 @@ final class Covers
foreach ($method->covers as $covering) {
if ($covering instanceof CoversClass) {
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversClass({$covering->class}]";
if (!is_null($covering->method)) {
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->method}']";
}
} else if ($covering instanceof CoversFunction) {
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->function}']";
} else {