From d0136b63d47b03126e5cbc39a384494f98ad03a7 Mon Sep 17 00:00:00 2001 From: danilopolani Date: Mon, 7 Mar 2022 18:23:06 +0100 Subject: [PATCH] fix linting --- src/PendingCalls/TestCall.php | 6 ++---- tests/Features/Covers.php | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) 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();