Skip to content

Commit

Permalink
test - refactor KuveytPosSerializerTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed Mar 30, 2024
1 parent 61bebda commit 9c97ed4
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/Unit/Serializer/KuveytPosSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ public function testDecodeJson(string $input, string $txType, array $expected):
$this->assertSame($expected, $actual);
}

/**
* @dataProvider decodeXmlDataProvider
*/
public function testDecodeXML(string $input, string $txType, array $expected): void
{
$actual = $this->serializer->decode($input, $txType);

$this->assertSame($expected, $actual);
}

public static function encodeDataProvider(): Generator
{
Expand Down Expand Up @@ -179,16 +188,6 @@ public static function decodeHtmlDataProvider(): array
];
}

/**
* @dataProvider decodeXmlDataProvider
*/
public function testDecodeXML(string $input, string $txType, array $expected): void
{
$actual = $this->serializer->decode($input, $txType);

$this->assertSame($expected, $actual);
}

public static function decodeXmlDataProvider(): iterable
{
yield [
Expand Down

0 comments on commit 9c97ed4

Please sign in to comment.