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 { /**