Skip to content

Commit

Permalink
Tokenizer/PHP/DoubleQuotedStringTest: document how parse errors are h…
Browse files Browse the repository at this point in the history
…andled
  • Loading branch information
jrfnl committed Jun 3, 2022
1 parent 99b6dd8 commit 150c8c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Core/Tokenizer/DoubleQuotedStringTest.inc
Expand Up @@ -47,3 +47,6 @@
"${foo->{${'a'}}}";
/* testNested5 */
"${foo->{"${'a'}"}}";

/* testParseError */
"${foo["${bar
5 changes: 5 additions & 0 deletions tests/Core/Tokenizer/DoubleQuotedStringTest.php
Expand Up @@ -123,6 +123,11 @@ public function dataDoubleQuotedString()
'testMarker' => '/* testNested5 */',
'expectedContent' => '"${foo->{"${\'a\'}"}}"',
],
[
'testMarker' => '/* testParseError */',
'expectedContent' => '"${foo["${bar
',
],
];

}//end dataDoubleQuotedString()
Expand Down

0 comments on commit 150c8c4

Please sign in to comment.