Skip to content

Commit 51a3c0a

Browse files
authored
[TASK] Avoid heredoc in a test (#1410)
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 cb0292d commit 51a3c0a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/ParserTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,10 @@ public function selectorRemoval(): void
570570
public function comments(): void
571571
{
572572
$document = self::parsedStructureForFile('comments');
573-
$expected = <<<EXPECTED
574-
@import url("some/url.css") screen;
575-
.foo, #bar {background-color: #000;}
576-
@media screen {#foo.bar {position: absolute;}}
577-
EXPECTED;
573+
574+
$expected = "@import url(\"some/url.css\") screen;\n"
575+
. ".foo, #bar {background-color: #000;}\n"
576+
. '@media screen {#foo.bar {position: absolute;}}';
578577
self::assertSame($expected, $document->render());
579578
}
580579

0 commit comments

Comments
 (0)