expectException(Exception\RangeException::class); Hex\decode('gf'); } public function testDecodeThrowsForAnOddNumberOfCharacters(): void { $this->expectException(Exception\RangeException::class); Hex\decode('f'); } public function provideRandomBytes(): iterable { for ($i = 1; $i < 128; ++$i) { yield [SecureRandom\bytes($i)]; } } }