Skip to content

Commit

Permalink
[Serializer] improved duplicated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kruk committed Oct 21, 2020
1 parent a850a54 commit 7a5cacc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ public function testDecodeFloatAttribute()
{
$source = <<<XML
<?xml version="1.0"?>
<document index="-12.11">Name</document>
<document index="12.11">Name</document>
XML;

$this->assertSame(['@index' => -12.11, '#' => 'Name'], $this->encoder->decode($source, 'xml'));
$this->assertSame(['@index' => 12.11, '#' => 'Name'], $this->encoder->decode($source, 'xml'));
}

public function testDecodeNegativeFloatAttribute()
Expand Down

0 comments on commit 7a5cacc

Please sign in to comment.