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 9, 2023
1 parent c2a64c3 commit a84f83c
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 @@ -41,19 +41,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 @@ -80,19 +80,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 a84f83c

Please sign in to comment.