From 580c16180f730883cc422b158de371caf780b41c Mon Sep 17 00:00:00 2001 From: Petr Duda Date: Wed, 8 Feb 2023 21:47:30 +0100 Subject: [PATCH] name data provider cases --- tests/Enum/EnumSerializerHandlerTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Enum/EnumSerializerHandlerTest.php b/tests/Enum/EnumSerializerHandlerTest.php index 4bff169..10297e3 100644 --- a/tests/Enum/EnumSerializerHandlerTest.php +++ b/tests/Enum/EnumSerializerHandlerTest.php @@ -38,19 +38,19 @@ public function testSerializeEnumToXml(): void public function jsonTypesDataProvider(): Generator { - yield [ + yield 'integer' => [ 'value' => TypeEnum::INTEGER, 'serializedValue' => '1', ]; - yield [ + yield 'string' => [ 'value' => TypeEnum::STRING, 'serializedValue' => '"foo"', ]; - yield [ + yield 'float' => [ 'value' => TypeEnum::FLOAT, 'serializedValue' => '2.5', ]; - yield [ + yield 'boolean' => [ 'value' => TypeEnum::BOOLEAN, 'serializedValue' => 'true', ]; @@ -74,19 +74,19 @@ public function testSerializeJsonTypes($value, string $serializedValue): void public function xmlTypesDataProvider(): Generator { - yield [ + yield 'integer' => [ 'value' => TypeEnum::INTEGER, 'serializedValue' => '1', ]; - yield [ + yield 'string' => [ 'value' => TypeEnum::STRING, 'serializedValue' => '', ]; - yield [ + yield 'float' => [ 'value' => TypeEnum::FLOAT, 'serializedValue' => '2.5', ]; - yield [ + yield 'boolean' => [ 'value' => TypeEnum::BOOLEAN, 'serializedValue' => 'true', ];