🚿 deprecate QRCode::is* string validation in favor of $datamode::validateString(), move tests

This commit is contained in:
codemasher
2021-12-12 23:32:31 +01:00
parent 7963d9f151
commit 3fac6cf89b
8 changed files with 68 additions and 42 deletions
+10
View File
@@ -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],
];
}
}