This commit is contained in:
danilopolani
2022-03-05 17:25:23 +01:00
parent 21364779f9
commit 1079793ccf
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ final class TestCaseFactory
} }
$methodsCode = implode('', array_map( $methodsCode = implode('', array_map(
fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations, self::$attributes), fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations),
$methods $methods
)); ));

View File

@ -48,7 +48,7 @@ final class TestCaseMethodFactory
public array $groups = []; public array $groups = [];
/** /**
* The covered classes and methods, if any. * The covered classes and functions, if any.
* *
* @var array<int, \Pest\Factories\Covers\CoversClass|\Pest\Factories\Covers\CoversFunction|\Pest\Factories\Covers\CoversNothing> * @var array<int, \Pest\Factories\Covers\CoversClass|\Pest\Factories\Covers\CoversFunction|\Pest\Factories\Covers\CoversNothing>
*/ */
@ -115,7 +115,7 @@ final class TestCaseMethodFactory
* *
* @param array<int, class-string> $annotationsToUse * @param array<int, class-string> $annotationsToUse
*/ */
public function buildForEvaluation(string $classFQN, array $annotationsToUse, array $attributesToUse): string public function buildForEvaluation(string $classFQN, array $annotationsToUse): string
{ {
if ($this->description === null) { if ($this->description === null) {
throw ShouldNotHappen::fromMessage('The test description may not be empty.'); throw ShouldNotHappen::fromMessage('The test description may not be empty.');