Skip to content

Commit

Permalink
Aded heredoc test case
Browse files Browse the repository at this point in the history
  • Loading branch information
cseufert committed Mar 8, 2024
1 parent 80eb946 commit fa21220
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/snapshot/heredoc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,16 @@ $b = <<<'EOT'
)
).toMatchSnapshot();
});

it("Can parse HEREDOC with escaped characters #1130", () => {
expect(
parser.parseEval(`
if (true) {
echo <<<STR
\na
STR;
}
`)
).toMatchSnapshot();
});
});

0 comments on commit fa21220

Please sign in to comment.