diff --git a/tests/Unit/Value/ValueTest.php b/tests/Unit/Value/ValueTest.php index 87c282c0..5b34831b 100644 --- a/tests/Unit/Value/ValueTest.php +++ b/tests/Unit/Value/ValueTest.php @@ -60,8 +60,42 @@ public function parsesArithmeticInFunctions(string $operator): void self::DEFAULT_DELIMITERS ); - self::assertInstanceOf(CSSFunction::class, $subject); - self::assertSame('max(300px,50vh ' . $operator . ' 10px)', $subject->render(OutputFormat::createCompact())); + $result = $subject->getArrayRepresentation(); + self::assertSame( + [ + 'class' => 'CSSFunction', + 'components' => [ + [ + 'class' => 'Size', + 'number' => 300.0, + 'unit' => 'px', + ], + [ + 'class' => 'RuleValueList', + 'components' => [ + [ + 'class' => 'Size', + 'number' => 50.0, + 'unit' => 'vh', + ], + [ + 'class' => 'string', + 'value' => $operator, + ], + [ + 'class' => 'Size', + 'number' => 10.0, + 'unit' => 'px', + ], + ], + 'separator' => ' ', + ], + ], + 'separator' => ',', + 'name' => 'max', + ], + $result + ); } /**