Skip to content

Commit 779bbe1

Browse files
committed
Squiz/OperatorSpacing: move parse error test to own test case file
1 parent 37af382 commit 779bbe1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.1.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,3 @@ match ($a) {
482482
'b', 'c', 'd' => -2,
483483
default => -3,
484484
};
485-
486-
/* Intentional parse error. This has to be the last test in the file. */
487-
$a = 10 +

src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.1.inc.fixed

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,3 @@ match ($a) {
476476
'b', 'c', 'd' => -2,
477477
default => -3,
478478
};
479-
480-
/* Intentional parse error. This has to be the last test in the file. */
481-
$a = 10 +
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
// Intentional parse error (unfinished statement).
4+
// This has to be the only test in the file.
5+
6+
$a = 10 +

0 commit comments

Comments
 (0)