Skip to content

Commit 03a96ee

Browse files
committed
Arrays/ArrayDeclarationSpacing: move parse error test to its own file
1 parent b6584b8 commit 03a96ee

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

WordPress/Tests/Arrays/ArrayDeclarationSpacingUnitTest.1.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,3 @@ $bad = array(
8181

8282
// Don't confuse list arrows with array arrows.
8383
$okay = array( $item1, list( 'key1' => $a, 'key2' => $b ) = $array, $item3 );
84-
85-
// Live coding/parse error.
86-
// This must be the last test in the file!
87-
$ignore = array( $item1, 'key' => 'value',

WordPress/Tests/Arrays/ArrayDeclarationSpacingUnitTest.1.inc.fixed

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,3 @@ $bad = array(
134134

135135
// Don't confuse list arrows with array arrows.
136136
$okay = array( $item1, list( 'key1' => $a, 'key2' => $b ) = $array, $item3 );
137-
138-
// Live coding/parse error.
139-
// This must be the last test in the file!
140-
$ignore = array( $item1, 'key' => 'value',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (unclosed array).
5+
* This should be the only test in this file.
6+
*/
7+
8+
$ignore = array( $item1, 'key' => 'value',

0 commit comments

Comments
 (0)