Skip to content

Commit

Permalink
Demonstrate #11 also for heredocs
Browse files Browse the repository at this point in the history
  • Loading branch information
axelcostaspena committed Oct 19, 2014
1 parent f6f76a1 commit eecacee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$foo = <<<TAG
\"\'\\\
TAG;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$foo = <<<'TAG'
\"<caret>\'\\
TAG;
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ public void testVariableVariable() {
phpIntentionTest(getTestName(false), TEST_INTENTION_NAME);
}

// test for #11
public void testExcessiveBackslashBeforeSingleQuoteEscaping() {
phpIntentionTest(getTestName(false), TEST_INTENTION_NAME);
}

}

0 comments on commit eecacee

Please sign in to comment.