diff --git a/tests/issue-186.php b/tests/issue-186.php index c8490cff..7aca60a2 100644 --- a/tests/issue-186.php +++ b/tests/issue-186.php @@ -21,7 +21,7 @@ case null: case false: echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) - echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) + echo 'test'; // Emacs27 breaks indentation in this case #612 } switch (true) { @@ -37,3 +37,14 @@ echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) } + +const AAA = 'AAA'; +const bbb = 'bbb'; + +switch (true) { +case AAA: +case bbb: +case 111: + echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) + echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2))) +}