Exemplo n.º 1
0
 public function testToAndFromShortString()
 {
     $uuid1 = Uuid::uuid4();
     $uuid2 = Uuid::fromShortString($uuid1->getShortString());
     $this->assertTrue($uuid1->equals($uuid2));
     $this->assertSame(22, strlen($uuid1->getShortString()));
     $this->assertSame($uuid1->getShortString(), $uuid2->getShortString());
 }