@@ -21,14 +21,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
2121 Given I have the following Constraint:
2222 """
2323 use Symfony\Component\Validator\Constraints as ConstraintNS;
24- return new ConstraintNS\GreaterThan([
25- 'value' => 2,
26- 'payload' => [
24+ return new ConstraintNS\GreaterThan(
25+ 2,
26+ null,
27+ null,
28+ null,
29+ [
2730 'documentation' => [
2831 'type' => 'integer'
2932 ]
3033 ]
31- ] );
34+ );
3235 """
3336 When I transform constraint
3437 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\I ntegerDoc"
@@ -49,14 +52,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
4952 Given I have the following Constraint:
5053 """
5154 use Symfony\Component\Validator\Constraints as ConstraintNS;
52- return new ConstraintNS\GreaterThan([
53- 'value' => 2.4,
54- 'payload' => [
55+ return new ConstraintNS\GreaterThan(
56+ 2.4,
57+ null,
58+ null,
59+ null,
60+ [
5561 'documentation' => [
5662 'type' => 'float'
5763 ]
5864 ]
59- ] );
65+ );
6066 """
6167 When I transform constraint
6268 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\F loatDoc"
@@ -77,14 +83,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
7783 Given I have the following Constraint:
7884 """
7985 use Symfony\Component\Validator\Constraints as ConstraintNS;
80- return new ConstraintNS\GreaterThan([
81- 'value' => 2,
82- 'payload' => [
86+ return new ConstraintNS\GreaterThan(
87+ 2,
88+ null,
89+ null,
90+ null,
91+ [
8392 'documentation' => [
8493 'type' => 'array'
8594 ]
8695 ]
87- ] );
96+ );
8897 """
8998 When I transform constraint
9099 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\A rrayDoc"
@@ -123,14 +132,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
123132 Given I have the following Constraint:
124133 """
125134 use Symfony\Component\Validator\Constraints as ConstraintNS;
126- return new ConstraintNS\GreaterThanOrEqual([
127- 'value' => 2,
128- 'payload' => [
135+ return new ConstraintNS\GreaterThanOrEqual(
136+ 2,
137+ null,
138+ null,
139+ null,
140+ [
129141 'documentation' => [
130142 'type' => 'integer'
131143 ]
132144 ]
133- ] );
145+ );
134146 """
135147 When I transform constraint
136148 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\I ntegerDoc"
@@ -151,14 +163,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
151163 Given I have the following Constraint:
152164 """
153165 use Symfony\Component\Validator\Constraints as ConstraintNS;
154- return new ConstraintNS\GreaterThanOrEqual([
155- 'value' => 2.4,
156- 'payload' => [
166+ return new ConstraintNS\GreaterThanOrEqual(
167+ 2.4,
168+ null,
169+ null,
170+ null,
171+ [
157172 'documentation' => [
158173 'type' => 'float'
159174 ]
160175 ]
161- ] );
176+ );
162177 """
163178 When I transform constraint
164179 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\F loatDoc"
@@ -179,14 +194,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
179194 Given I have the following Constraint:
180195 """
181196 use Symfony\Component\Validator\Constraints as ConstraintNS;
182- return new ConstraintNS\GreaterThanOrEqual([
183- 'value' => 2,
184- 'payload' => [
197+ return new ConstraintNS\GreaterThanOrEqual(
198+ 2,
199+ null,
200+ null,
201+ null,
202+ [
185203 'documentation' => [
186204 'type' => 'array'
187205 ]
188206 ]
189- ] );
207+ );
190208 """
191209 When I transform constraint
192210 Then I should have a constraint doc of class "Yoanm\J sonRpcServerDoc\D omain\M odel\T ype\A rrayDoc"
0 commit comments