Skip to content

Commit 0a4e8b9

Browse files
committed
Generic/LowerCaseConstant: move parse error test to its own file
1 parent 4312057 commit 0a4e8b9

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.1.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,3 @@ class TypedConstants {
151151

152152
// Global constants can not be typed.
153153
const MYCONST = TRUE;
154-
155-
// Last coding/parse error.
156-
// This has to be the last test in the file.
157-
function UnclosedCurly (): FALSE {

src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.1.inc.fixed

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,3 @@ class TypedConstants {
151151

152152
// Global constants can not be typed.
153153
const MYCONST = true;
154-
155-
// Last coding/parse error.
156-
// This has to be the last test in the file.
157-
function UnclosedCurly (): FALSE {
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+
function UnclosedCurly (): FALSE {

0 commit comments

Comments
 (0)