mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
fix fqn on coversClass attribute and array evaluation
This commit is contained in:
@ -32,9 +32,9 @@ final class Covers extends Attribute
|
||||
{
|
||||
foreach ($method->covers as $covering) {
|
||||
if ($covering instanceof CoversClass) {
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversClass({$covering->class}]";
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversClass({$covering->class}::class)]";
|
||||
} else if ($covering instanceof CoversFunction) {
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->function}']";
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->function}')]";
|
||||
} else {
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversNothing]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user