diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index f9152b49..5f51389c 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -151,7 +151,7 @@ final class TestCaseFactory } $methodsCode = implode('', array_map( - fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations, self::$attributes), + fn (TestCaseMethodFactory $methodFactory) => $methodFactory->buildForEvaluation($classFQN, self::$annotations), $methods )); diff --git a/src/Factories/TestCaseMethodFactory.php b/src/Factories/TestCaseMethodFactory.php index bb9e6721..21118b8f 100644 --- a/src/Factories/TestCaseMethodFactory.php +++ b/src/Factories/TestCaseMethodFactory.php @@ -48,7 +48,7 @@ final class TestCaseMethodFactory public array $groups = []; /** - * The covered classes and methods, if any. + * The covered classes and functions, if any. * * @var array */ @@ -115,7 +115,7 @@ final class TestCaseMethodFactory * * @param array $annotationsToUse */ - public function buildForEvaluation(string $classFQN, array $annotationsToUse, array $attributesToUse): string + public function buildForEvaluation(string $classFQN, array $annotationsToUse): string { if ($this->description === null) { throw ShouldNotHappen::fromMessage('The test description may not be empty.');