Skip to content

Commit

Permalink
fix: correct comparing uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
gubler authored Jun 17, 2021
1 parent 29a46ed commit f5effbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/UuidEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Gubler\UuidEncoder\UuidEncoder;
use Ramsey\Uuid\Uuid;

/**
* @covers \Gubler\UuidEncoder\UuidEncoder
*/
class UuidEncoderTest extends TestCase
{
private $tool;
Expand Down Expand Up @@ -46,6 +49,6 @@ public function testCanDecodeWithDefaultCharset(): void
$expected = Uuid::fromString('00000000-0000-4000-8000-000000000000');

$actual = $this->tool->decode($source);
$this->assertEquals($expected, $actual);
$this->assertEquals(0, $expected->compareTo($actual));
}
}

0 comments on commit f5effbe

Please sign in to comment.