Use the codec to encode to binary when using Uuid::getBytes()

This commit is contained in:
Ben Ramsey
2020-01-08 20:10:37 -06:00
parent 4d1db4d090
commit 668b6ab9a2
5 changed files with 17 additions and 2 deletions
@@ -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'));