@@ -20,8 +20,8 @@ public static function provideRuleUnexpectedValueData(): \Generator
2020 {
2121 $ constraints = [1 , 2 , 3 , 4 , 5 ];
2222
23- $ unexpectedMultipleMessage = '/Expected value of type "array", "(.*)" given/ ' ;
24- $ unexpectedMinMaxMessage = '/Maximum value must be greater than or equal to minimum value./ ' ;
23+ $ unexpectedMultipleMessage = '/Expected value of type "array", "(.*)" given\. / ' ;
24+ $ unexpectedMinMaxMessage = '/Maximum value must be greater than or equal to minimum value\ ./ ' ;
2525
2626 yield 'multiple not array ' => [new Choice ($ constraints , true ), 1 , $ unexpectedMultipleMessage ];
2727 yield 'min greater than max constraint ' => [new Choice ($ constraints , true , 3 , 2 ), [1 , 2 ], $ unexpectedMinMaxMessage ];
@@ -32,10 +32,10 @@ public static function provideRuleFailureConditionData(): \Generator
3232 $ constraints = [1 , 2 , 3 , 4 , 5 ];
3333 $ exception = ChoiceException::class;
3434
35- $ message = '/The (.*) value is not a valid choice, (.*) given. Accepted values are: (.*)./ ' ;
36- $ multipleMessage = '/The (.*) value has one or more invalid choices, (.*) given. Accepted values are: (.*)./ ' ;
37- $ maxMessage = '/The (.*) value must have at most (.*) choices, (.*) choices given./ ' ;
38- $ minMessage = '/The (.*) value must have at least (.*) choices, (.*) choices given./ ' ;
35+ $ message = '/The (.*) value is not a valid choice, (.*) given\ . Accepted values are\ : (.*)\ ./ ' ;
36+ $ multipleMessage = '/The (.*) value has one or more invalid choices, (.*) given\ . Accepted values are\ : (.*)\ ./ ' ;
37+ $ maxMessage = '/The (.*) value must have at most (.*) choices, (.*) choices given\ ./ ' ;
38+ $ minMessage = '/The (.*) value must have at least (.*) choices, (.*) choices given\ ./ ' ;
3939
4040 yield 'invalid choice ' => [new Choice ($ constraints ), 10 , $ exception , $ message ];
4141 yield 'invalid choice type ' => [new Choice ($ constraints ), '1 ' , $ exception , $ message ];
0 commit comments