Skip to content

Commit 4eab727

Browse files
committed
Fix: keys in sub-arrays in data provider methods should match the
parameter names of the test method
1 parent b7d9f2e commit 4eab727

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -283,47 +283,47 @@ public static function dataSwitchDefault()
283283
{
284284
return [
285285
'simple_switch_default' => [
286-
'testMarker' => '/* testSimpleSwitchDefault */',
287-
'testOpenerMarker' => '/* testSimpleSwitchDefault */',
288-
'testCloserMarker' => '/* testSimpleSwitchDefault */',
286+
'testMarker' => '/* testSimpleSwitchDefault */',
287+
'openerMarker' => '/* testSimpleSwitchDefault */',
288+
'closerMarker' => '/* testSimpleSwitchDefault */',
289289
],
290290
'simple_switch_default_with_curlies' => [
291291
// For a default structure with curly braces, the scope opener
292292
// will be the open curly and the closer the close curly.
293293
// However, scope conditions will not be set for open to close,
294294
// but only for the open token up to the "break/return/continue" etc.
295295
'testMarker' => '/* testSimpleSwitchDefaultWithCurlies */',
296-
'testOpenerMarker' => '/* testSimpleSwitchDefaultWithCurliesScopeOpener */',
297-
'testCloserMarker' => '/* testSimpleSwitchDefaultWithCurliesScopeCloser */',
296+
'openerMarker' => '/* testSimpleSwitchDefaultWithCurliesScopeOpener */',
297+
'closerMarker' => '/* testSimpleSwitchDefaultWithCurliesScopeCloser */',
298298
'conditionStopMarker' => '/* testSimpleSwitchDefaultWithCurliesConditionStop */',
299299
],
300300
'switch_default_toplevel' => [
301-
'testMarker' => '/* testSwitchDefault */',
302-
'testOpenerMarker' => '/* testSwitchDefault */',
303-
'testCloserMarker' => '/* testSwitchDefaultCloserMarker */',
301+
'testMarker' => '/* testSwitchDefault */',
302+
'openerMarker' => '/* testSwitchDefault */',
303+
'closerMarker' => '/* testSwitchDefaultCloserMarker */',
304304
],
305305
'switch_default_nested_in_match_case' => [
306-
'testMarker' => '/* testSwitchDefaultNestedInMatchCase */',
307-
'testOpenerMarker' => '/* testSwitchDefaultNestedInMatchCase */',
308-
'testCloserMarker' => '/* testSwitchDefaultNestedInMatchCase */',
306+
'testMarker' => '/* testSwitchDefaultNestedInMatchCase */',
307+
'openerMarker' => '/* testSwitchDefaultNestedInMatchCase */',
308+
'closerMarker' => '/* testSwitchDefaultNestedInMatchCase */',
309309
],
310310
'switch_default_nested_in_match_default' => [
311-
'testMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
312-
'testOpenerMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
313-
'testCloserMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
311+
'testMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
312+
'openerMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
313+
'closerMarker' => '/* testSwitchDefaultNestedInMatchDefault */',
314314
],
315315
'switch_and_default_sharing_scope_closer' => [
316316
'testMarker' => '/* testSwitchAndDefaultSharingScopeCloser */',
317-
'testOpenerMarker' => '/* testSwitchAndDefaultSharingScopeCloser */',
318-
'testCloserMarker' => '/* testSwitchAndDefaultSharingScopeCloserScopeCloser */',
317+
'openerMarker' => '/* testSwitchAndDefaultSharingScopeCloser */',
318+
'closerMarker' => '/* testSwitchAndDefaultSharingScopeCloserScopeCloser */',
319319
'conditionStop' => null,
320320
'testContent' => 'default',
321321
'sharedScopeCloser' => true,
322322
],
323323
'switch_and_default_with_nested_if_with_and_without_braces' => [
324-
'testMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
325-
'testOpenerMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
326-
'testCloserMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBracesScopeCloser */',
324+
'testMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
325+
'openerMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
326+
'closerMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBracesScopeCloser */',
327327
],
328328
];
329329

0 commit comments

Comments
 (0)