Skip to content

Commit

Permalink
Generic/ScopeIndent: add test for issue 437
Browse files Browse the repository at this point in the history
Fixes #437
  • Loading branch information
jrfnl committed May 19, 2024
1 parent e8746a3 commit f01098d
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,21 @@ foo(function ($foo) {
];
});

// Issue #437.
match (true) {
default => [
'unrelated' => '',
'example' => array_filter(
array_map(
function () {
return null;
},
[]
)
)
]
};

/* ADD NEW TESTS ABOVE THIS LINE AND MAKE SURE THAT THE 1 (space-based) AND 2 (tab-based) FILES ARE IN SYNC! */
?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,21 @@ foo(function ($foo) {
];
});

// Issue #437.
match (true) {
default => [
'unrelated' => '',
'example' => array_filter(
array_map(
function () {
return null;
},
[]
)
)
]
};

/* ADD NEW TESTS ABOVE THIS LINE AND MAKE SURE THAT THE 1 (space-based) AND 2 (tab-based) FILES ARE IN SYNC! */
?>

Expand Down
15 changes: 15 additions & 0 deletions src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,21 @@ foo(function ($foo) {
];
});

// Issue #437.
match (true) {
default => [
'unrelated' => '',
'example' => array_filter(
array_map(
function () {
return null;
},
[]
)
)
]
};

/* ADD NEW TESTS ABOVE THIS LINE AND MAKE SURE THAT THE 1 (space-based) AND 2 (tab-based) FILES ARE IN SYNC! */
?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,21 @@ foo(function ($foo) {
];
});

// Issue #437.
match (true) {
default => [
'unrelated' => '',
'example' => array_filter(
array_map(
function () {
return null;
},
[]
)
)
]
};

/* ADD NEW TESTS ABOVE THIS LINE AND MAKE SURE THAT THE 1 (space-based) AND 2 (tab-based) FILES ARE IN SYNC! */
?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ public function getErrorList($testFile='')
1527 => 1,
1529 => 1,
1530 => 1,
1590 => 1,
1591 => 1,
1592 => 1,
1593 => 1,
1605 => 1,
1606 => 1,
1607 => 1,
1608 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit f01098d

Please sign in to comment.