Introduce separate class support for GUIDs

This commit is contained in:
Ben Ramsey
2020-01-03 11:25:56 -06:00
parent d4dd45e908
commit d6ed9b3832
15 changed files with 657 additions and 174 deletions
+2 -2
View File
@@ -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);