Skip to content

Commit

Permalink
Be paranoid
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 26, 2023
1 parent cbd75e3 commit 765d358
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ final class UuidTest extends TestCase
{
public function testGeneratesUuid(): void
{
$this->assertStringIsUuid(uuid());
$a = uuid();
$b = uuid();

$this->assertStringIsUuid($a);
$this->assertStringIsUuid($b);
$this->assertNotSame($a, $b);
}

private function assertStringIsUuid(string $string): void
Expand Down

0 comments on commit 765d358

Please sign in to comment.