Skip to content

Commit 6959a34

Browse files
committed
Add test case for constant and number
1 parent a5f137e commit 6959a34

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/issue-186.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@
3737
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
3838
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
3939
}
40+
41+
const AAA = 'AAA';
42+
const bbb = 'bbb';
43+
44+
switch (true) {
45+
case AAA:
46+
case bbb:
47+
case 111:
48+
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
49+
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
50+
}

0 commit comments

Comments
 (0)