Skip to content

Commit 00f637f

Browse files
authored
[TASK] Avoid heredoc in another test (#1411)
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
1 parent dc99bbd commit 00f637f

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

tests/OutputFormatTest.php

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,19 @@
1515
*/
1616
final class OutputFormatTest extends TestCase
1717
{
18-
private const TEST_CSS = <<<EOT
19-
20-
.main, .test {
21-
font: italic normal bold 16px/1.2 "Helvetica", Verdana, sans-serif;
22-
background: white;
23-
}
24-
25-
@media screen {
26-
.main {
27-
background-size: 100% 100%;
28-
font-size: 1.3em;
29-
background-color: #fff;
30-
}
31-
}
32-
33-
EOT;
18+
private const TEST_CSS = "\n"
19+
. ".main, .test {\n"
20+
. "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n"
21+
. "\tbackground: white;\n"
22+
. "}\n"
23+
. "\n"
24+
. "@media screen {\n"
25+
. "\t.main {\n"
26+
. "\t\tbackground-size: 100% 100%;\n"
27+
. "\t\tfont-size: 1.3em;\n"
28+
. "\t\tbackground-color: #fff;\n"
29+
. "\t}\n"
30+
. "}\n";
3431

3532
/**
3633
* @var Parser

0 commit comments

Comments
 (0)