From 4282d2c2035bda82615dfdf4bad3df754889e895 Mon Sep 17 00:00:00 2001 From: Andrey Postal Date: Sat, 17 Aug 2024 19:40:11 -0300 Subject: [PATCH] Update tests setting --- phpunit.xml.dist | 2 +- tests/HydratorTest.php | 4 ++-- tests/SerializerTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a5c1ef2..3c60f8a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,7 +16,7 @@ - + diff --git a/tests/HydratorTest.php b/tests/HydratorTest.php index 1f3001b..306688d 100644 --- a/tests/HydratorTest.php +++ b/tests/HydratorTest.php @@ -2,12 +2,12 @@ use Andrey\JsonHandler\JsonHandler; use Andrey\JsonHandler\JsonHydratorTrait; +use PHPUnit\Framework\Attributes\CoversMethod; use PHPUnit\Framework\Attributes\CoversTrait; -use PHPUnit\Framework\Attributes\UsesClass; use PHPUnit\Framework\TestCase; #[CoversTrait(JsonHydratorTrait::class)] -#[UsesClass(JsonHandler::class)] +#[CoversMethod(JsonHandler::class, 'Decode')] final class HydratorTest extends TestCase { /** diff --git a/tests/SerializerTest.php b/tests/SerializerTest.php index a7c7a5b..dc02bb1 100644 --- a/tests/SerializerTest.php +++ b/tests/SerializerTest.php @@ -3,12 +3,12 @@ use Andrey\JsonHandler\JsonHandler; use Andrey\JsonHandler\JsonItemAttribute; use Andrey\JsonHandler\JsonSerializerTrait; +use PHPUnit\Framework\Attributes\CoversMethod; use PHPUnit\Framework\Attributes\CoversTrait; -use PHPUnit\Framework\Attributes\UsesClass; use PHPUnit\Framework\TestCase; #[CoversTrait(JsonSerializerTrait::class)] -#[UsesClass(JsonHandler::class)] +#[CoversMethod(JsonHandler::class, 'Encode')] final class SerializerTest extends TestCase { /**