@@ -4,9 +4,12 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
4
4
Given I have the following Constraint:
5
5
"""
6
6
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
+ [
10
13
'documentation' => [
11
14
'description' => 'description',
12
15
'default' => 'default',
@@ -15,7 +18,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
15
18
'nullable' => false
16
19
]
17
20
]
18
- ] );
21
+ );
19
22
"""
20
23
When I transform constraint
21
24
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
31
34
Given I have the following Constraint:
32
35
"""
33
36
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
+ [
37
43
'documentation' => [
38
44
'type' => 'integer',
39
45
'description' => 'description',
@@ -43,7 +49,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
43
49
'nullable' => false
44
50
]
45
51
]
46
- ] );
52
+ );
47
53
"""
48
54
When I transform constraint
49
55
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
63
69
Given I have the following Constraint:
64
70
"""
65
71
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
+ [
69
78
'documentation' => [
70
79
'type' => 'float',
71
80
'description' => 'description',
@@ -75,7 +84,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
75
84
'nullable' => false
76
85
]
77
86
]
78
- ] );
87
+ );
79
88
"""
80
89
When I transform constraint
81
90
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
95
104
Given I have the following Constraint:
96
105
"""
97
106
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
+ [
101
113
'documentation' => [
102
114
'type' => 'array',
103
115
'description' => 'description',
@@ -107,7 +119,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
107
119
'nullable' => false
108
120
]
109
121
]
110
- ] );
122
+ );
111
123
"""
112
124
When I transform constraint
113
125
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
128
140
Given I have the following Constraint:
129
141
"""
130
142
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
+ [
134
149
'documentation' => [
135
150
'description' => 'description',
136
151
'default' => 'default',
@@ -139,7 +154,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
139
154
'nullable' => false
140
155
]
141
156
]
142
- ] );
157
+ );
143
158
"""
144
159
When I transform constraint
145
160
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
155
170
Given I have the following Constraint:
156
171
"""
157
172
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
+ [
161
179
'documentation' => [
162
180
'type' => 'integer',
163
181
'description' => 'description',
@@ -167,7 +185,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
167
185
'nullable' => false
168
186
]
169
187
]
170
- ] );
188
+ );
171
189
"""
172
190
When I transform constraint
173
191
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
187
205
Given I have the following Constraint:
188
206
"""
189
207
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
+ [
193
214
'documentation' => [
194
215
'type' => 'float',
195
216
'description' => 'description',
@@ -199,7 +220,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
199
220
'nullable' => false
200
221
]
201
222
]
202
- ] );
223
+ );
203
224
"""
204
225
When I transform constraint
205
226
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
219
240
Given I have the following Constraint:
220
241
"""
221
242
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
+ [
225
249
'documentation' => [
226
250
'type' => 'array',
227
251
'description' => 'description',
@@ -231,7 +255,7 @@ Feature: ConstraintToParamsDocTransformer - Fully configured GreaterThan & Great
231
255
'nullable' => false
232
256
]
233
257
]
234
- ] );
258
+ );
235
259
"""
236
260
When I transform constraint
237
261
Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\A rrayDoc"
0 commit comments