From 031ef6863caf6f95df7d694bcbbaeca974e0bf66 Mon Sep 17 00:00:00 2001 From: Petr Duda Date: Wed, 8 Feb 2023 21:45:16 +0100 Subject: [PATCH] name data provider values --- tests/Enum/EnumSerializerHandlerTest.php | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/Enum/EnumSerializerHandlerTest.php b/tests/Enum/EnumSerializerHandlerTest.php index 346b963..4bff169 100644 --- a/tests/Enum/EnumSerializerHandlerTest.php +++ b/tests/Enum/EnumSerializerHandlerTest.php @@ -39,20 +39,20 @@ public function testSerializeEnumToXml(): void public function jsonTypesDataProvider(): Generator { yield [ - TypeEnum::INTEGER, - '1', + 'value' => TypeEnum::INTEGER, + 'serializedValue' => '1', ]; yield [ - TypeEnum::STRING, - '"foo"', + 'value' => TypeEnum::STRING, + 'serializedValue' => '"foo"', ]; yield [ - TypeEnum::FLOAT, - '2.5', + 'value' => TypeEnum::FLOAT, + 'serializedValue' => '2.5', ]; yield [ - TypeEnum::BOOLEAN, - 'true', + 'value' => TypeEnum::BOOLEAN, + 'serializedValue' => 'true', ]; } @@ -75,20 +75,20 @@ public function testSerializeJsonTypes($value, string $serializedValue): void public function xmlTypesDataProvider(): Generator { yield [ - TypeEnum::INTEGER, - '1', + 'value' => TypeEnum::INTEGER, + 'serializedValue' => '1', ]; yield [ - TypeEnum::STRING, - '', + 'value' => TypeEnum::STRING, + 'serializedValue' => '', ]; yield [ - TypeEnum::FLOAT, - '2.5', + 'value' => TypeEnum::FLOAT, + 'serializedValue' => '2.5', ]; yield [ - TypeEnum::BOOLEAN, - 'true', + 'value' => TypeEnum::BOOLEAN, + 'serializedValue' => 'true', ]; }