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:
@@ -73,6 +73,8 @@ class StringCodecTest extends TestCase
|
||||
public function testEncodeBinaryReturnsBinaryString(): void
|
||||
{
|
||||
$expected = hex2bin('123456781234abcdabef1234abcd4321');
|
||||
$this->uuid->method('getHex')
|
||||
->willReturn('123456781234abcdabef1234abcd4321');
|
||||
$this->uuid->method('getBytes')
|
||||
->willReturn(hex2bin('123456781234abcdabef1234abcd4321'));
|
||||
$codec = new StringCodec($this->builder);
|
||||
|
||||
Reference in New Issue
Block a user