mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Introduce separate class support for GUIDs
This commit is contained in:
@@ -46,8 +46,8 @@ class TimestampLastCombCodecTest extends TestCase
|
||||
/** @var MockObject & UuidInterface $uuidMock */
|
||||
$uuidMock = $this->getMockBuilder(UuidInterface::class)->getMock();
|
||||
$uuidMock->expects($this->any())
|
||||
->method('getHex')
|
||||
->willReturn('0800200c9a6611e19b21ff6f8cb0c57d');
|
||||
->method('getBytes')
|
||||
->willReturn(hex2bin('0800200c9a6611e19b21ff6f8cb0c57d'));
|
||||
$encodedUuid = $this->codec->encodeBinary($uuidMock);
|
||||
|
||||
$this->assertSame(hex2bin('0800200c9a6611e19b21ff6f8cb0c57d'), $encodedUuid);
|
||||
|
||||
Reference in New Issue
Block a user