mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
pass methods name to attribute surrounded by quotes
This commit is contained in:
@ -28,10 +28,10 @@ final class Covers
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversClass({$covering->class}]";
|
||||
|
||||
if (!is_null($covering->method)) {
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction({$covering->method}]";
|
||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->method}']";
|
||||
}
|
||||
} 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