mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
add covers list and attributes mutator
This commit is contained in:
@ -35,6 +35,15 @@ final class TestCaseFactory
|
||||
Annotations\Groups::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The list of annotations.
|
||||
*
|
||||
* @var array<int, class-string>
|
||||
*/
|
||||
private static array $attributes = [
|
||||
Attributes\Covers::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The FQN of the Test Case class.
|
||||
*
|
||||
@ -142,7 +151,7 @@ final class TestCaseFactory
|
||||
}
|
||||
|
||||
$methodsCode = implode('', array_map(
|
||||
fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations),
|
||||
fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations, self::$attributes),
|
||||
$methods
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user