Skip to content

Commit 429e0a6

Browse files
author
Eric James Michael Ritz
committed
GitHub-Issue: 102 (Unit Test)
1 parent 883568f commit 429e0a6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/issue-102.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/**
4+
* Github Issue: https://github.com/ejmr/php-mode/issues/102
5+
*
6+
* Every line of code in the form of
7+
*
8+
* $broken = true;
9+
*
10+
* in the code below should have no indentation. This test makes sure
11+
* that files containing magic constants, e.g. __FILE__, do not
12+
* incorrectly affect the indentation of following lines.
13+
*
14+
*/
15+
16+
$x = some_function(__FILE__) . '';
17+
$broken = true;
18+
19+
some_function(__FILE__) . '';
20+
$broken = true;
21+
22+
some_function(__FILE__) + 1;
23+
$broken = true;

0 commit comments

Comments
 (0)