|
|
@@ -40,10 +40,12 @@ final class QRImagickTest extends QROutputTestAbstract{
|
|
|
public static function moduleValueProvider():array{
|
|
|
return [
|
|
|
'invalid: wrong type' => [[], false],
|
|
|
+ 'valid: hex color, numeric (3)' => ['#123', true],
|
|
|
'valid: hex color (3)' => ['#abc', true],
|
|
|
'valid: hex color (4)' => ['#abcd', true],
|
|
|
'valid: hex color (6)' => ['#aabbcc', true],
|
|
|
'valid: hex color (8)' => ['#aabbccdd', true],
|
|
|
+ 'valid: hex color, numeric (8)' => ['#11bb33dd', true],
|
|
|
'valid: hex color (32)' => ['#aaaaaaaabbbbbbbbccccccccdddddddd', true],
|
|
|
'invalid: hex color (non-hex)' => ['#aabbcxyz', false],
|
|
|
'invalid: hex color (too short)' => ['#aa', false],
|