Skip to content

Commit

Permalink
Verify UUID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
djlambert committed Dec 7, 2013
1 parent 5e82645 commit 917aa15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CrEOF/Tests/PhpUuidGenerator/PhpUuidGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ protected function setUp()
public function testGeneration()
{
$id = $this->_generator->generate($this->_em, null);

$this->assertRegExp('/[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}/', $id);
}

}

0 comments on commit 917aa15

Please sign in to comment.