mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Use the codec to encode to binary when using Uuid::getBytes()
This commit is contained in:
@@ -45,6 +45,9 @@ class TimestampLastCombCodecTest extends TestCase
|
||||
{
|
||||
/** @var MockObject & UuidInterface $uuidMock */
|
||||
$uuidMock = $this->getMockBuilder(UuidInterface::class)->getMock();
|
||||
$uuidMock->expects($this->any())
|
||||
->method('getHex')
|
||||
->willReturn('0800200c9a6611e19b21ff6f8cb0c57d');
|
||||
$uuidMock->expects($this->any())
|
||||
->method('getBytes')
|
||||
->willReturn(hex2bin('0800200c9a6611e19b21ff6f8cb0c57d'));
|
||||
|
||||
Reference in New Issue
Block a user