diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index 82dd4b65..bc125599 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -178,13 +178,11 @@ final class TestCall public function covers(string ...$classesOrFunctions): TestCall { foreach ($classesOrFunctions as $classOrFunction) { - $isClass = class_exists($classOrFunction); + $isClass = class_exists($classOrFunction); $isMethod = function_exists($classOrFunction); if (!$isClass && !$isMethod) { - throw new InvalidArgumentException( - sprintf('No class or method named "%s" has been found.', $classOrFunction) - ); + throw new InvalidArgumentException(sprintf('No class or method named "%s" has been found.', $classOrFunction)); } if ($isClass) { diff --git a/tests/Features/Covers.php b/tests/Features/Covers.php index b41b3f8a..3b9d6809 100644 --- a/tests/Features/Covers.php +++ b/tests/Features/Covers.php @@ -17,7 +17,9 @@ class TestCoversClass3 { } -function testCoversFunction() { } +function testCoversFunction() +{ +} it('uses the correct PHPUnit attribute for class', function () { $attributes = (new ReflectionClass($this))->getAttributes();