Skip to content

Commit 4f85e6e

Browse files
committed
test: wrap parser regression assertions
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent bee4172 commit 4f85e6e

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

tests/Unit/Html/SubsetHtmlParserTest.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,18 @@ public function testParseOnlyInheritsTextualStylesToDescendants(): void
7272
. '</div>',
7373
);
7474

75-
self::assertSame('width:58%;height:100%;padding:18 24;font-size:20;color:#123456', $nodes[0]->attributes['style']);
76-
self::assertSame('font-size:20;color:#123456;font-weight:700', $nodes[0]->children[0]->attributes['style']);
77-
self::assertSame('font-size:20;color:#123456;font-weight:700', $nodes[0]->children[0]->children[0]->attributes['style']);
75+
self::assertSame(
76+
'width:58%;height:100%;padding:18 24;font-size:20;color:#123456',
77+
$nodes[0]->attributes['style'],
78+
);
79+
self::assertSame(
80+
'font-size:20;color:#123456;font-weight:700',
81+
$nodes[0]->children[0]->attributes['style'],
82+
);
83+
self::assertSame(
84+
'font-size:20;color:#123456;font-weight:700',
85+
$nodes[0]->children[0]->children[0]->attributes['style'],
86+
);
7887
self::assertStringNotContainsString('width:58%', $nodes[0]->children[0]->attributes['style']);
7988
self::assertStringNotContainsString('height:100%', $nodes[0]->children[0]->attributes['style']);
8089
self::assertStringNotContainsString('padding:18 24', $nodes[0]->children[0]->attributes['style']);

0 commit comments

Comments
 (0)