44
55use ProgrammatorDev \YetAnotherPhpValidator \Exception \NotBlankException ;
66use ProgrammatorDev \YetAnotherPhpValidator \Rule \NotBlank ;
7- use ProgrammatorDev \YetAnotherPhpValidator \Test \Util \TestRuleCustomMessageTrait ;
7+ use ProgrammatorDev \YetAnotherPhpValidator \Test \Util \TestRuleMessageOptionTrait ;
88use ProgrammatorDev \YetAnotherPhpValidator \Test \Util \TestRuleFailureConditionTrait ;
99use ProgrammatorDev \YetAnotherPhpValidator \Test \Util \TestRuleSuccessConditionTrait ;
1010
1111class NotBlankTest extends AbstractTest
1212{
1313 use TestRuleFailureConditionTrait;
1414 use TestRuleSuccessConditionTrait;
15- use TestRuleCustomMessageTrait ;
15+ use TestRuleMessageOptionTrait ;
1616
1717 public static function provideRuleFailureConditionData (): \Generator
1818 {
@@ -23,6 +23,8 @@ public static function provideRuleFailureConditionData(): \Generator
2323 yield 'false ' => [new NotBlank (), false , $ exception , $ exceptionMessage ];
2424 yield 'blank string ' => [new NotBlank (), '' , $ exception , $ exceptionMessage ];
2525 yield 'blank array ' => [new NotBlank (), [], $ exception , $ exceptionMessage ];
26+
27+ yield 'normalizer whitespace ' => [new NotBlank (['normalizer ' => 'trim ' ]), ' ' , $ exception , $ exceptionMessage ];
2628 }
2729
2830 public static function provideRuleSuccessConditionData (): \Generator
@@ -42,7 +44,7 @@ public static function provideRuleSuccessConditionData(): \Generator
4244 yield 'zero number ' => [new NotBlank (), 0 ];
4345 }
4446
45- public static function provideRuleCustomMessageData (): \Generator
47+ public static function provideRuleMessageOptionData (): \Generator
4648 {
4749 yield 'message ' => [
4850 new NotBlank ([
0 commit comments