@@ -17,15 +17,15 @@ class NotBlankTest extends AbstractTest
1717 public static function provideRuleFailureConditionData (): \Generator
1818 {
1919 $ exception = NotBlankException::class;
20- $ exceptionMessage = '/The "(.*)" value should not be blank, "(.*)" given./ ' ;
20+ $ message = '/The "(.*)" value should not be blank, "(.*)" given./ ' ;
2121
22- yield 'null ' => [new NotBlank (), null , $ exception , $ exceptionMessage ];
23- yield 'false ' => [new NotBlank (), false , $ exception , $ exceptionMessage ];
24- yield 'blank string ' => [new NotBlank (), '' , $ exception , $ exceptionMessage ];
25- yield 'blank array ' => [new NotBlank (), [], $ exception , $ exceptionMessage ];
22+ yield 'null ' => [new NotBlank (), null , $ exception , $ message ];
23+ yield 'false ' => [new NotBlank (), false , $ exception , $ message ];
24+ yield 'blank string ' => [new NotBlank (), '' , $ exception , $ message ];
25+ yield 'blank array ' => [new NotBlank (), [], $ exception , $ message ];
2626
27- yield 'normalizer whitespace ' => [new NotBlank (normalizer: 'trim ' ), ' ' , $ exception , $ exceptionMessage ];
28- yield 'normalizer whitespace function ' => [new NotBlank (normalizer: fn ($ value ) => trim ($ value )), ' ' , $ exception , $ exceptionMessage ];
27+ yield 'normalizer whitespace ' => [new NotBlank (normalizer: 'trim ' ), ' ' , $ exception , $ message ];
28+ yield 'normalizer whitespace function ' => [new NotBlank (normalizer: fn ($ value ) => trim ($ value )), ' ' , $ exception , $ message ];
2929 }
3030
3131 public static function provideRuleSuccessConditionData (): \Generator
0 commit comments