Skip to content

Commit b4df61e

Browse files
committed
Tests/NamedFunctionCallArgumentsTest: normalize data provider arrays
... to improve scannability of the test cases covered. See 225
1 parent 9772b42 commit b4df61e

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public static function dataNamedFunctionCallArguments()
105105
],
106106
[
107107
'/* testMixedPositionalAndNamedArgs */',
108-
['double_encode'],
108+
[
109+
'double_encode',
110+
],
109111
],
110112
[
111113
'/* testNestedFunctionCallOuter */',
@@ -117,11 +119,15 @@ public static function dataNamedFunctionCallArguments()
117119
],
118120
[
119121
'/* testNestedFunctionCallInner1 */',
120-
['skip'],
122+
[
123+
'skip',
124+
],
121125
],
122126
[
123127
'/* testNestedFunctionCallInner2 */',
124-
['array_or_countable'],
128+
[
129+
'array_or_countable',
130+
],
125131
],
126132
[
127133
'/* testNamespaceRelativeFunction */',
@@ -212,23 +218,33 @@ public static function dataNamedFunctionCallArguments()
212218
// Coding errors which should still be handled.
213219
[
214220
'/* testCompileErrorNamedBeforePositional */',
215-
['param'],
221+
[
222+
'param',
223+
],
216224
],
217225
[
218226
'/* testDuplicateName1 */',
219-
['param'],
227+
[
228+
'param',
229+
],
220230
],
221231
[
222232
'/* testDuplicateName2 */',
223-
['param'],
233+
[
234+
'param',
235+
],
224236
],
225237
[
226238
'/* testIncorrectOrderWithVariadic */',
227-
['start_index'],
239+
[
240+
'start_index',
241+
],
228242
],
229243
[
230244
'/* testCompileErrorIncorrectOrderWithVariadic */',
231-
['param'],
245+
[
246+
'param',
247+
],
232248
],
233249
[
234250
'/* testParseErrorNoValue */',
@@ -239,19 +255,27 @@ public static function dataNamedFunctionCallArguments()
239255
],
240256
[
241257
'/* testParseErrorExit */',
242-
['status'],
258+
[
259+
'status',
260+
],
243261
],
244262
[
245263
'/* testParseErrorEmpty */',
246-
['variable'],
264+
[
265+
'variable',
266+
],
247267
],
248268
[
249269
'/* testParseErrorEval */',
250-
['code'],
270+
[
271+
'code',
272+
],
251273
],
252274
[
253275
'/* testParseErrorArbitraryParentheses */',
254-
['something'],
276+
[
277+
'something',
278+
],
255279
],
256280
];
257281

0 commit comments

Comments
 (0)