Skip to content

Commit b9751e8

Browse files
committed
Tokenizer/PHP/DoubleQuotedStringTest: document how parse errors are handled
1 parent 99b6dd8 commit b9751e8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/Core/Tokenizer/DoubleQuotedStringTest.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@
4747
"${foo->{${'a'}}}";
4848
/* testNested5 */
4949
"${foo->{"${'a'}"}}";
50+
51+
/* testParseError */
52+
"${foo["${bar

tests/Core/Tokenizer/DoubleQuotedStringTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ public function dataDoubleQuotedString()
123123
'testMarker' => '/* testNested5 */',
124124
'expectedContent' => '"${foo->{"${\'a\'}"}}"',
125125
],
126+
[
127+
'testMarker' => '/* testParseError */',
128+
'expectedContent' => '"${foo["${bar',
129+
],
126130
];
127131

128132
}//end dataDoubleQuotedString()

0 commit comments

Comments
 (0)