mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-10 05:46:01 +00:00
🚿 deprecate QRCode::is* string validation in favor of $datamode::validateString(), move tests
This commit is contained in:
@@ -20,4 +20,14 @@ final class AlphaNumTest extends DatainterfaceTestAbstract{
|
||||
protected string $FQN = AlphaNum::class;
|
||||
protected string $testdata = '0 $%*+-./:';
|
||||
|
||||
/**
|
||||
* isAlphaNum() should pass on the 45 defined characters and fail on anything else (e.g. lowercase)
|
||||
*/
|
||||
public function stringValidateProvider():array{
|
||||
return [
|
||||
['ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 $%*+-./:', true],
|
||||
['abc', false],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user