Assert the length of time bytes is 6

This commit is contained in:
Ben Ramsey
2025-06-23 18:01:01 -05:00
parent f2956967f2
commit eaa5e16923
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -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) . '"',
);
}
/**