Skip to content

Commit

Permalink
Improve base32 package alphabet formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Feb 27, 2024
1 parent 156fc5b commit d3b0782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Base32/Base32Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ public static function invalidDecodingSequence(): iterable

yield 'invalid alphabet length' => [
'sequence' => 'A',
'message' => 'The alphabet must be 32 bytes long containing unique characters.',
'message' => 'The alphabet must be 32 bytes long string containing unique characters.',
'alphabet' => '1234567890asdfghjklzxcvbnm',
'padding' => '=',
];

yield 'the padding character is contained within the alphabet' => [
'sequence' => 'A',
'message' => 'The alphabet contains invalid characters.',
'message' => 'The alphabet contains an invalid character.',
'alphabet' => str_replace('A', '*', PHP_BASE32_ASCII),
'padding' => '*',
];
Expand Down

0 comments on commit d3b0782

Please sign in to comment.