Skip to content

Commit 1f0aa82

Browse files
committed
[TASK] Avoid heredoc in a 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
1 parent 4a8a1c1 commit 1f0aa82

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;'
575+
. "\n.foo, #bar {background-color: #000;}"
576+
. "\n@media screen {#foo.bar {position: absolute;}}";
578577
self::assertSame($expected, $document->render());
579578
}
580579

0 commit comments

Comments
 (0)