Skip to content

Commit 6355e6e

Browse files
committed
Move intentional parse error to its own file
1 parent b41ae59 commit 6355e6e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,3 @@ $newLine;
7474
// The following line must have a single space at the end (after return)
7575
return
7676
$spaceAndNewLine;
77-
78-
// The following line must be the last line in the file
79-
return

src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,3 @@ return $newLine;
6868

6969
// The following line must have a single space at the end (after return)
7070
return $spaceAndNewLine;
71-
72-
// The following line must be the last line in the file
73-
return
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
// Intentional parse error. Testing that the sniff is *not* triggered in this case.
4+
return

0 commit comments

Comments
 (0)