Skip to content

Commit 14e6bee

Browse files
committed
Fix tests not to use implicit cast to string
1 parent 2d81c9e commit 14e6bee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Unit/Value/ExpressionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PHPUnit\Framework\TestCase;
66
use Sabberworm\CSS\Parsing\ParserState;
7+
use Sabberworm\CSS\OutputFormat;
78
use Sabberworm\CSS\Settings;
89
use Sabberworm\CSS\Value\Value;
910
use Sabberworm\CSS\Value\ValueList;
@@ -48,7 +49,7 @@ public function parseExpressions(string $input, string $expected, int $expressio
4849

4950
self::assertInstanceOf(ValueList::class, $val);
5051
self::assertInstanceOf(Expression::class, $val->getListComponents()[$expression_index]);
51-
self::assertSame($expected, (string) $val);
52+
self::assertSame($expected, $val->render(OutputFormat::createCompact()));
5253
}
5354

5455
private function getDelimiters(string $rule): array

0 commit comments

Comments
 (0)