mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Assert the length of time bytes is 6
This commit is contained in:
@@ -35,7 +35,11 @@ class UnixTimeGeneratorTest extends TestCase
|
||||
|
||||
$bytes = $unixTimeGenerator->generate(null, null, $dateTime);
|
||||
|
||||
$this->assertSame($expectedBytes, $bytes);
|
||||
$this->assertSame(
|
||||
$expectedBytes,
|
||||
$bytes,
|
||||
'Failed asserting that "' . bin2hex($bytes) . '" is equal to "' . bin2hex($expectedBytes) . '"',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user