Skip to content

Commit

Permalink
name data provider cases
Browse files Browse the repository at this point in the history
  • Loading branch information
petrduda committed Feb 8, 2023
1 parent 031ef68 commit 580c161
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Enum/EnumSerializerHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
Expand All @@ -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' => '<![CDATA[foo]]>',
];
yield [
yield 'float' => [
'value' => TypeEnum::FLOAT,
'serializedValue' => '2.5',
];
yield [
yield 'boolean' => [
'value' => TypeEnum::BOOLEAN,
'serializedValue' => 'true',
];
Expand Down

0 comments on commit 580c161

Please sign in to comment.