Apply fields functionality to Uuid class

This commit is contained in:
Ben Ramsey
2020-01-03 11:18:28 -06:00
parent 24311f2925
commit d4dd45e908
4 changed files with 36 additions and 54 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ class UuidFactoryTest extends TestCase
$uuid = $factory->fromString('ff6f8cb0-c57d-11e1-9b21-0800200c9a66');
$this->assertEquals('ff6f8cb0-c57d-11e1-9b21-0800200c9a66', $uuid->toString());
$this->assertSame('ff6f8cb0-c57d-11e1-9b21-0800200c9a66', $uuid->toString());
$this->assertSame(hex2bin('ff6f8cb0c57d11e19b210800200c9a66'), $uuid->getBytes());
}
public function testParsesGuidCorrectly(): void