expectException(Exception\RangeException::class); Base64\decode('@~=='); } public function testDecodeThrowsForIncorrectPadding(): void { $this->expectException(Exception\IncorrectPaddingException::class); Base64\decode('ab'); } public function provideRandomBytes(): iterable { for ($i = 1; $i < 128; ++$i) { yield [SecureRandom\bytes($i)]; } } }