Skip to content

Commit

Permalink
name data provider values
Browse files Browse the repository at this point in the history
  • Loading branch information
petrduda committed Feb 8, 2023
1 parent f100802 commit 031ef68
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/Enum/EnumSerializerHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}

Expand All @@ -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,
'<![CDATA[foo]]>',
'value' => TypeEnum::STRING,
'serializedValue' => '<![CDATA[foo]]>',
];
yield [
TypeEnum::FLOAT,
'2.5',
'value' => TypeEnum::FLOAT,
'serializedValue' => '2.5',
];
yield [
TypeEnum::BOOLEAN,
'true',
'value' => TypeEnum::BOOLEAN,
'serializedValue' => 'true',
];
}

Expand Down

0 comments on commit 031ef68

Please sign in to comment.