@@ -66,39 +66,39 @@ public static function provideRuleMessageOptionData(): \Generator
66
66
yield 'message ' => [
67
67
new Choice (
68
68
constraints: $ constraints ,
69
- message: 'The {{ name }} value {{ value }} is not a valid choice. '
69
+ message: '{{ name }} | {{ value }} | {{ constraints }} '
70
70
),
71
71
10 ,
72
- 'The test value 10 is not a valid choice. '
72
+ 'test | 10 | [1, 2, 3, 4, 5] '
73
73
];
74
74
yield 'multiple message ' => [
75
75
new Choice (
76
76
constraints: $ constraints ,
77
77
multiple: true ,
78
- multipleMessage: 'The {{ name }} value {{ value }} is not a valid choice. '
78
+ multipleMessage: '{{ name }} | {{ value }} | {{ constraints }} '
79
79
),
80
80
[10 ],
81
- 'The test value [10] is not a valid choice. '
81
+ 'test | [10] | [1, 2, 3, 4, 5] '
82
82
];
83
83
yield 'min message ' => [
84
84
new Choice (
85
85
constraints: $ constraints ,
86
86
multiple: true ,
87
87
min: 2 ,
88
- minMessage: 'The {{ name }} value should have at least {{ min }} choices. '
88
+ minMessage: '{{ name }} | {{ value }} | {{ constraints }} | {{ min }} | {{ max }} | {{ numElements }} '
89
89
),
90
90
[1 ],
91
- 'The test value should have at least 2 choices. '
91
+ 'test | [1] | [1, 2, 3, 4, 5] | 2 | null | 1 '
92
92
];
93
93
yield 'max message ' => [
94
94
new Choice (
95
95
constraints: $ constraints ,
96
96
multiple: true ,
97
97
max: 2 ,
98
- maxMessage: 'The {{ name }} value should have at most {{ max }} choices. '
98
+ maxMessage: '{{ name }} | {{ value }} | {{ constraints }} | {{ min }} | {{ max }} | {{ numElements }} '
99
99
),
100
100
[1 , 2 , 3 ],
101
- 'The test value should have at most 2 choices. '
101
+ 'test | [1, 2, 3] | [1, 2, 3, 4, 5] | null | 2 | 3 '
102
102
];
103
103
}
104
104
0 commit comments