Skip to content

Commit 6d615c9

Browse files
committed
Update colorParsing test to use getAllDeclarationBlocks()
1 parent 697c37f commit 6d615c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/ParserTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ public function files(): void
9191
public function colorParsing(): void
9292
{
9393
$document = self::parsedStructureForFile('colortest');
94-
foreach ($document->getAllRuleSets() as $ruleSet) {
95-
if (!($ruleSet instanceof DeclarationBlock)) {
96-
continue;
97-
}
94+
foreach ($document->getAllDeclarationBlocks() as $ruleSet) {
9895
$selectors = $ruleSet->getSelectors();
9996
$selector = $selectors[0]->getSelector();
10097
if ($selector === '#mine') {

0 commit comments

Comments
 (0)