Skip to content

Commit 21a11fa

Browse files
committed
name data provider cases
1 parent 64f83dd commit 21a11fa

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/Enum/EnumSerializerHandlerTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ public function testSerializeEnumToXml(): void
4141
*/
4242
public function jsonTypesDataProvider(): Generator
4343
{
44-
yield [
44+
yield 'integer' => [
4545
'value' => TypeEnum::INTEGER,
4646
'serializedValue' => '1',
4747
];
48-
yield [
48+
yield 'string' => [
4949
'value' => TypeEnum::STRING,
5050
'serializedValue' => '"foo"',
5151
];
52-
yield [
52+
yield 'float' => [
5353
'value' => TypeEnum::FLOAT,
5454
'serializedValue' => '2.5',
5555
];
56-
yield [
56+
yield 'boolean' => [
5757
'value' => TypeEnum::BOOLEAN,
5858
'serializedValue' => 'true',
5959
];
@@ -80,19 +80,19 @@ public function testSerializeJsonTypes($value, string $serializedValue): void
8080
*/
8181
public function xmlTypesDataProvider(): Generator
8282
{
83-
yield [
83+
yield 'integer' => [
8484
'value' => TypeEnum::INTEGER,
8585
'serializedValue' => '1',
8686
];
87-
yield [
87+
yield 'string' => [
8888
'value' => TypeEnum::STRING,
8989
'serializedValue' => '<![CDATA[foo]]>',
9090
];
91-
yield [
91+
yield 'float' => [
9292
'value' => TypeEnum::FLOAT,
9393
'serializedValue' => '2.5',
9494
];
95-
yield [
95+
yield 'boolean' => [
9696
'value' => TypeEnum::BOOLEAN,
9797
'serializedValue' => 'true',
9898
];

0 commit comments

Comments
 (0)