/**
* @return array<string, array{bool|string|null, ?string, Flag[]}>
*/
public static function exceptionCases(): array
{ return [ 'Required HTML filtered content throws' =>
['<test>', 'This value should not be blank.',
[new Required()]],
'Required null content throws' =>
[null, 'This value should not be blank.',
[new Required()]],
'Required empty content throws' =>
['', 'This value should not be blank.',
[new Required()]],
'Wrong type throws' =>
[true, 'This value should be of type string.',
[new Required()]],
'Required and allow empty throws with null' =>
[null, 'This value should not be null.',
[new Required(),
new AllowEmptyString()]],
];
} /**
* @return array<string, array{bool|string|null, ?string, Flag[]}>
*/
public static function longTextFieldDataProvider(): array
{ return [ 'String values are passed through' =>
['test12-B', 'test12-B',
[new Required()]],
'Null is allowed without required flag' =>
[null, null,
[]],