From 5580a7921f11a598308283108e97997802133a16 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 4 Dec 2025 16:29:09 +0100 Subject: [PATCH 1/2] [TASK] Avoid heredoc in another test This allows the testcase being autoformatted without breaking the tests for PHP 7.2. https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc --- tests/OutputFormatTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/OutputFormatTest.php b/tests/OutputFormatTest.php index cb0dfd42c..6d25be31d 100644 --- a/tests/OutputFormatTest.php +++ b/tests/OutputFormatTest.php @@ -15,8 +15,7 @@ */ final class OutputFormatTest extends TestCase { - private const TEST_CSS = << Date: Fri, 5 Dec 2025 08:17:42 +0100 Subject: [PATCH 2/2] Switch to concatenation --- tests/OutputFormatTest.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/tests/OutputFormatTest.php b/tests/OutputFormatTest.php index 6d25be31d..104ad7b5c 100644 --- a/tests/OutputFormatTest.php +++ b/tests/OutputFormatTest.php @@ -15,20 +15,19 @@ */ final class OutputFormatTest extends TestCase { - private const TEST_CSS = ' -.main, .test { - font: italic normal bold 16px/1.2 "Helvetica", Verdana, sans-serif; - background: white; -} - -@media screen { - .main { - background-size: 100% 100%; - font-size: 1.3em; - background-color: #fff; - } -} -'; + private const TEST_CSS = "\n" + . ".main, .test {\n" + . "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n" + . "\tbackground: white;\n" + . "}\n" + . "\n" + . "@media screen {\n" + . "\t.main {\n" + . "\t\tbackground-size: 100% 100%;\n" + . "\t\tfont-size: 1.3em;\n" + . "\t\tbackground-color: #fff;\n" + . "\t}\n" + . "}\n"; /** * @var Parser