mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Change UuidBuilderInterface::build() to accept bytes instead of fields
This commit is contained in:
@@ -88,10 +88,12 @@ class StringCodecTest extends TestCase
|
||||
'node' => $this->fields->getNode()->toString(),
|
||||
];
|
||||
|
||||
$bytes = hex2bin(implode('', $fields));
|
||||
|
||||
$string = 'uuid:12345678-1234-4bcd-abef-1234abcd4321';
|
||||
$this->builder->expects($this->once())
|
||||
->method('build')
|
||||
->with($this->isInstanceOf(StringCodec::class), $fields);
|
||||
->with($this->isInstanceOf(StringCodec::class), $bytes);
|
||||
$codec = new StringCodec($this->builder);
|
||||
$codec->decode($string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user