@@ -4,9 +4,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
44 Given I have the following Constraint:
55 """
66 use Symfony\Component\Validator\Constraints as ConstraintNS;
7- return new ConstraintNS\GreaterThan([
8- 'value' => 2,
9- 'payload' => [
7+ return new ConstraintNS\GreaterThan(
8+ 2,
9+ null,
10+ null,
11+ null,
12+ [
1013 'documentation' => [
1114 'description' => 'description',
1215 'default' => 'default',
@@ -15,7 +18,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
1518 'nullable' => false
1619 ]
1720 ]
18- ] );
21+ );
1922 """
2023 When I transform constraint
2124 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\T ypeDoc"
@@ -31,9 +34,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
3134 Given I have the following Constraint:
3235 """
3336 use Symfony\Component\Validator\Constraints as ConstraintNS;
34- return new ConstraintNS\GreaterThan([
35- 'value' => 2,
36- 'payload' => [
37+ return new ConstraintNS\GreaterThan(
38+ 2,
39+ null,
40+ null,
41+ null,
42+ [
3743 'documentation' => [
3844 'type' => 'integer',
3945 'description' => 'description',
@@ -43,7 +49,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
4349 'nullable' => false
4450 ]
4551 ]
46- ] );
52+ );
4753 """
4854 When I transform constraint
4955 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\I ntegerDoc"
@@ -63,9 +69,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
6369 Given I have the following Constraint:
6470 """
6571 use Symfony\Component\Validator\Constraints as ConstraintNS;
66- return new ConstraintNS\GreaterThan([
67- 'value' => 2.4,
68- 'payload' => [
72+ return new ConstraintNS\GreaterThan(
73+ 2.4,
74+ null,
75+ null,
76+ null,
77+ [
6978 'documentation' => [
7079 'type' => 'float',
7180 'description' => 'description',
@@ -75,7 +84,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
7584 'nullable' => false
7685 ]
7786 ]
78- ] );
87+ );
7988 """
8089 When I transform constraint
8190 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\F loatDoc"
@@ -95,9 +104,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
95104 Given I have the following Constraint:
96105 """
97106 use Symfony\Component\Validator\Constraints as ConstraintNS;
98- return new ConstraintNS\GreaterThan([
99- 'value' => 2,
100- 'payload' => [
107+ return new ConstraintNS\GreaterThan(
108+ 2,
109+ null,
110+ null,
111+ null,
112+ [
101113 'documentation' => [
102114 'type' => 'array',
103115 'description' => 'description',
@@ -107,7 +119,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
107119 'nullable' => false
108120 ]
109121 ]
110- ] );
122+ );
111123 """
112124 When I transform constraint
113125 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\A rrayDoc"
@@ -128,9 +140,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
128140 Given I have the following Constraint:
129141 """
130142 use Symfony\Component\Validator\Constraints as ConstraintNS;
131- return new ConstraintNS\GreaterThanOrEqual([
132- 'value' => 2,
133- 'payload' => [
143+ return new ConstraintNS\GreaterThanOrEqual(
144+ 2,
145+ null,
146+ null,
147+ null,
148+ [
134149 'documentation' => [
135150 'description' => 'description',
136151 'default' => 'default',
@@ -139,7 +154,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
139154 'nullable' => false
140155 ]
141156 ]
142- ] );
157+ );
143158 """
144159 When I transform constraint
145160 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\T ypeDoc"
@@ -155,9 +170,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
155170 Given I have the following Constraint:
156171 """
157172 use Symfony\Component\Validator\Constraints as ConstraintNS;
158- return new ConstraintNS\GreaterThanOrEqual([
159- 'value' => 2,
160- 'payload' => [
173+ return new ConstraintNS\GreaterThanOrEqual(
174+ 2,
175+ null,
176+ null,
177+ null,
178+ [
161179 'documentation' => [
162180 'type' => 'integer',
163181 'description' => 'description',
@@ -167,7 +185,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
167185 'nullable' => false
168186 ]
169187 ]
170- ] );
188+ );
171189 """
172190 When I transform constraint
173191 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\I ntegerDoc"
@@ -187,9 +205,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
187205 Given I have the following Constraint:
188206 """
189207 use Symfony\Component\Validator\Constraints as ConstraintNS;
190- return new ConstraintNS\GreaterThanOrEqual([
191- 'value' => 2.4,
192- 'payload' => [
208+ return new ConstraintNS\GreaterThanOrEqual(
209+ 2.4,
210+ null,
211+ null,
212+ null,
213+ [
193214 'documentation' => [
194215 'type' => 'float',
195216 'description' => 'description',
@@ -199,7 +220,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
199220 'nullable' => false
200221 ]
201222 ]
202- ] );
223+ );
203224 """
204225 When I transform constraint
205226 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\F loatDoc"
@@ -219,9 +240,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
219240 Given I have the following Constraint:
220241 """
221242 use Symfony\Component\Validator\Constraints as ConstraintNS;
222- return new ConstraintNS\GreaterThanOrEqual([
223- 'value' => 2,
224- 'payload' => [
243+ return new ConstraintNS\GreaterThanOrEqual(
244+ 2,
245+ null,
246+ null,
247+ null,
248+ [
225249 'documentation' => [
226250 'type' => 'array',
227251 'description' => 'description',
@@ -231,7 +255,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
231255 'nullable' => false
232256 ]
233257 ]
234- ] );
258+ );
235259 """
236260 When I transform constraint
237261 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\A rrayDoc"
0 commit comments