Change first constructor param in Uuid to Rfc4122\FieldsInterface

This commit is contained in:
Ben Ramsey
2020-01-12 11:27:59 -06:00
parent 360261d617
commit 52f764c284
10 changed files with 23 additions and 37 deletions
+2 -10
View File
@@ -68,17 +68,9 @@ class GuidStringCodecTest extends TestCase
public function testEncodeBinary(): void
{
$expectedBytes = hex2bin('785634123412cd4babef1234abcd4321');
$fields = [
'time_low' => '78563412',
'time_mid' => '3412',
'time_hi_and_version' => 'cd4b',
'clock_seq_hi_and_reserved' => 'ab',
'clock_seq_low' => 'ef',
'node' => '1234abcd4321',
];
$expectedBytes = (string) hex2bin('785634123412cd4babef1234abcd4321');
$fields = new Fields($expectedBytes);
$codec = new GuidStringCodec($this->builder);
$numberConverter = Mockery::mock(NumberConverterInterface::class);
$timeConverter = Mockery::mock(TimeConverterInterface::class);