File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -80,20 +80,6 @@ public function dataCoerceCases()
80
80
),
81
81
);
82
82
83
- $ tests = array ();
84
- foreach ($ types as $ toType => $ testCases ) {
85
- foreach ($ testCases as $ testCase ) {
86
- $ tests [] = array (
87
- sprintf ('{"properties":{"propertyOne":{"type":"%s"}}} ' , strtolower ($ toType )),
88
- sprintf ('{"propertyOne":%s} ' , $ testCase [1 ]),
89
- $ testCase [0 ],
90
- $ toType ,
91
- $ testCase [2 ],
92
- $ testCase [3 ]
93
- );
94
- }
95
- }
96
-
97
83
// #38 check post-coercion validation (to array)
98
84
$ tests [] = array (
99
85
'{"properties":{"propertyOne":{"type":"array","items":[{"type":"number"}]}}} ' ,
@@ -150,6 +136,20 @@ public function dataCoerceCases()
150
136
'string ' , 'integer ' , 42 , true
151
137
);
152
138
139
+ $ tests = array ();
140
+ foreach ($ types as $ toType => $ testCases ) {
141
+ foreach ($ testCases as $ testCase ) {
142
+ $ tests [] = array (
143
+ sprintf ('{"properties":{"propertyOne":{"type":"%s"}}} ' , strtolower ($ toType )),
144
+ sprintf ('{"propertyOne":%s} ' , $ testCase [1 ]),
145
+ $ testCase [0 ],
146
+ $ toType ,
147
+ $ testCase [2 ],
148
+ $ testCase [3 ]
149
+ );
150
+ }
151
+ }
152
+
153
153
return $ tests ;
154
154
}
155
155
You can’t perform that action at this time.
0 commit comments