From c862aa3c23468d2f145f641f83716d8925321903 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 22 Aug 2021 13:49:03 +0200 Subject: [PATCH] Add test assertions for heredoc marker inside the text --- .../Composer/Test/Autoload/Fixtures/classmap/StripNoise.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php b/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php index 17c3aaeeef66..c1d6c3df4c07 100644 --- a/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php +++ b/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php @@ -19,8 +19,14 @@ class FailHeredocWhitespace } WHITESPACE . <<< MARKERINTEXT In PHP < 7.3, the docblock marker could occur in the text as long as it did not occur at the very start of the line. +class FailHeredocMarkerInText +{ +} But, what are you blind McFly, it's there. How else do you explain that wreck out there? Doc, Doc. Oh, no. You're alive. Bullet proof vest, how did you know, I never got a chance to tell you. About all that talk about screwing up future events, the space time continuum. Okay, alright, I'll prove it to you. MARKERINTEXT +class FailHeredocMarkerInText2 +{ +} Look at my driver's license, expires 1987. Look at my birthday, for crying out load I haven't even been born yet. And, look at this picture, my brother, my sister, and me. Look at the sweatshirt, Doc, class of 1984. Why do you keep following me around? Hey beat it, spook, this don't concern you. MARKERINTEXT . <<<"DOUBLEQUOTES" class FailHeredocDoubleQuotes