@@ -66,39 +66,39 @@ public static function provideRuleMessageOptionData(): \Generator
6666 yield 'message ' => [
6767 new Choice (
6868 constraints: $ constraints ,
69- message: 'The {{ name }} value {{ value }} is not a valid choice. '
69+ message: '{{ name }} | {{ value }} | {{ constraints }} '
7070 ),
7171 10 ,
72- 'The test value 10 is not a valid choice. '
72+ 'test | 10 | [1, 2, 3, 4, 5] '
7373 ];
7474 yield 'multiple message ' => [
7575 new Choice (
7676 constraints: $ constraints ,
7777 multiple: true ,
78- multipleMessage: 'The {{ name }} value {{ value }} is not a valid choice. '
78+ multipleMessage: '{{ name }} | {{ value }} | {{ constraints }} '
7979 ),
8080 [10 ],
81- 'The test value [10] is not a valid choice. '
81+ 'test | [10] | [1, 2, 3, 4, 5] '
8282 ];
8383 yield 'min message ' => [
8484 new Choice (
8585 constraints: $ constraints ,
8686 multiple: true ,
8787 min: 2 ,
88- minMessage: 'The {{ name }} value should have at least {{ min }} choices. '
88+ minMessage: '{{ name }} | {{ value }} | {{ constraints }} | {{ min }} | {{ max }} | {{ numElements }} '
8989 ),
9090 [1 ],
91- 'The test value should have at least 2 choices. '
91+ 'test | [1] | [1, 2, 3, 4, 5] | 2 | null | 1 '
9292 ];
9393 yield 'max message ' => [
9494 new Choice (
9595 constraints: $ constraints ,
9696 multiple: true ,
9797 max: 2 ,
98- maxMessage: 'The {{ name }} value should have at most {{ max }} choices. '
98+ maxMessage: '{{ name }} | {{ value }} | {{ constraints }} | {{ min }} | {{ max }} | {{ numElements }} '
9999 ),
100100 [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 '
102102 ];
103103 }
104104
0 commit comments