mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27: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}]";
|
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversClass({$covering->class}]";
|
||||||
|
|
||||||
if (!is_null($covering->method)) {
|
if (!is_null($covering->method)) {
|
||||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction({$covering->method}]";
|
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->method}']";
|
||||||
}
|
}
|
||||||
} else if ($covering instanceof CoversFunction) {
|
} else if ($covering instanceof CoversFunction) {
|
||||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction({$covering->function}]";
|
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversFunction('{$covering->function}']";
|
||||||
} else {
|
} else {
|
||||||
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversNothing]";
|
$attributes[] = "#[\PHPUnit\Framework\Attributes\CoversNothing]";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user