From 8c3064b60a16e7b642ac08b2e9a056e63a5f7a61 Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Thu, 15 Oct 2026 18:02:42 +0200 Subject: [PATCH] #58 - Tests: cover the AsRestClient attribute PHPUnit with coverage (CI) reported the attribute constructor as not covered (UsesClass instead of CoversClass). Co-Authored-By: Claude Opus 5.5 (1M context) --- .../DependencyInjection/CleverAgeRestProcessExtensionTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/DependencyInjection/CleverAgeRestProcessExtensionTest.php b/tests/DependencyInjection/CleverAgeRestProcessExtensionTest.php index 38b11f1..cd7f62a 100644 --- a/tests/DependencyInjection/CleverAgeRestProcessExtensionTest.php +++ b/tests/DependencyInjection/CleverAgeRestProcessExtensionTest.php @@ -19,7 +19,6 @@ use CleverAge\RestProcessBundle\Task\RequestTask; use CleverAge\RestProcessBundle\Tests\Fixtures\AttributedClient; use PHPUnit\Framework\Attributes\CoversClass; -use PHPUnit\Framework\Attributes\UsesClass; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\AttributeAutoconfigurationPass; use Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass; @@ -29,7 +28,7 @@ use Symfony\Component\DependencyInjection\Reference; #[CoversClass(CleverAgeRestProcessExtension::class)] -#[UsesClass(AsRestClient::class)] +#[CoversClass(AsRestClient::class)] class CleverAgeRestProcessExtensionTest extends TestCase { public function testServices(): void