:octocat: QROutputInterface::moduleValueIsValid() improved checks & tests

This commit is contained in:
smiley
2023-03-22 21:22:14 +01:00
parent b18647a147
commit 60a19b3c94
15 changed files with 259 additions and 30 deletions
+9
View File
@@ -19,4 +19,13 @@ abstract class QRStringTestAbstract extends QROutputTestAbstract{
protected string $FQN = QRString::class;
public static function moduleValueProvider():array{
return [
'invalid: wrong type' => [[], false],
'valid: string' => ['abc', true],
'valid: zero length string' => ['', true],
'valid: empty string' => [' ', true],
];
}
}