mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 21:05:50 +00:00
:octocat: QROutputInterface::moduleValueIsValid() improved checks & tests
This commit is contained in:
@@ -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],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user