From 150c8c408f1e741b823bd9988a1c7bf8e350dec4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 2 Jun 2022 21:04:22 +0200 Subject: [PATCH] Tokenizer/PHP/DoubleQuotedStringTest: document how parse errors are handled --- tests/Core/Tokenizer/DoubleQuotedStringTest.inc | 3 +++ tests/Core/Tokenizer/DoubleQuotedStringTest.php | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/tests/Core/Tokenizer/DoubleQuotedStringTest.inc b/tests/Core/Tokenizer/DoubleQuotedStringTest.inc index 52253619ed..62535b1e41 100644 --- a/tests/Core/Tokenizer/DoubleQuotedStringTest.inc +++ b/tests/Core/Tokenizer/DoubleQuotedStringTest.inc @@ -47,3 +47,6 @@ "${foo->{${'a'}}}"; /* testNested5 */ "${foo->{"${'a'}"}}"; + +/* testParseError */ +"${foo["${bar diff --git a/tests/Core/Tokenizer/DoubleQuotedStringTest.php b/tests/Core/Tokenizer/DoubleQuotedStringTest.php index f455fe7172..cc9fe49ec4 100644 --- a/tests/Core/Tokenizer/DoubleQuotedStringTest.php +++ b/tests/Core/Tokenizer/DoubleQuotedStringTest.php @@ -123,6 +123,11 @@ public function dataDoubleQuotedString() 'testMarker' => '/* testNested5 */', 'expectedContent' => '"${foo->{"${\'a\'}"}}"', ], + [ + 'testMarker' => '/* testParseError */', + 'expectedContent' => '"${foo["${bar +', + ], ]; }//end dataDoubleQuotedString()