@@ -91,22 +91,22 @@ public function files(): void
9191 public function colorParsing (): void
9292 {
9393 $ document = self ::parsedStructureForFile ('colortest ' );
94- foreach ($ document ->getAllDeclarationBlocks () as $ ruleSet ) {
95- $ selectors = $ ruleSet ->getSelectors ();
94+ foreach ($ document ->getAllDeclarationBlocks () as $ declarationBlock ) {
95+ $ selectors = $ declarationBlock ->getSelectors ();
9696 $ selector = $ selectors [0 ]->getSelector ();
9797 if ($ selector === '#mine ' ) {
98- $ colorRules = $ ruleSet ->getRules ('color ' );
98+ $ colorRules = $ declarationBlock ->getRules ('color ' );
9999 $ colorRuleValue = $ colorRules [0 ]->getValue ();
100100 self ::assertSame ('red ' , $ colorRuleValue );
101- $ colorRules = $ ruleSet ->getRules ('background- ' );
101+ $ colorRules = $ declarationBlock ->getRules ('background- ' );
102102 $ colorRuleValue = $ colorRules [0 ]->getValue ();
103103 self ::assertInstanceOf (Color::class, $ colorRuleValue );
104104 self ::assertEquals ([
105105 'r ' => new Size (35.0 , null , true , $ colorRuleValue ->getLineNumber ()),
106106 'g ' => new Size (35.0 , null , true , $ colorRuleValue ->getLineNumber ()),
107107 'b ' => new Size (35.0 , null , true , $ colorRuleValue ->getLineNumber ()),
108108 ], $ colorRuleValue ->getColor ());
109- $ colorRules = $ ruleSet ->getRules ('border-color ' );
109+ $ colorRules = $ declarationBlock ->getRules ('border-color ' );
110110 $ colorRuleValue = $ colorRules [0 ]->getValue ();
111111 self ::assertInstanceOf (Color::class, $ colorRuleValue );
112112 self ::assertEquals ([
@@ -122,7 +122,7 @@ public function colorParsing(): void
122122 'b ' => new Size (231.0 , null , true , $ colorRuleValue ->getLineNumber ()),
123123 'a ' => new Size ('0000.3 ' , null , true , $ colorRuleValue ->getLineNumber ()),
124124 ], $ colorRuleValue ->getColor ());
125- $ colorRules = $ ruleSet ->getRules ('outline-color ' );
125+ $ colorRules = $ declarationBlock ->getRules ('outline-color ' );
126126 $ colorRuleValue = $ colorRules [0 ]->getValue ();
127127 self ::assertInstanceOf (Color::class, $ colorRuleValue );
128128 self ::assertEquals ([
@@ -131,7 +131,7 @@ public function colorParsing(): void
131131 'b ' => new Size (34.0 , null , true , $ colorRuleValue ->getLineNumber ()),
132132 ], $ colorRuleValue ->getColor ());
133133 } elseif ($ selector === '#yours ' ) {
134- $ colorRules = $ ruleSet ->getRules ('background-color ' );
134+ $ colorRules = $ declarationBlock ->getRules ('background-color ' );
135135 $ colorRuleValue = $ colorRules [0 ]->getValue ();
136136 self ::assertInstanceOf (Color::class, $ colorRuleValue );
137137 self ::assertEquals ([
@@ -147,7 +147,7 @@ public function colorParsing(): void
147147 'l ' => new Size (220.0 , '% ' , true , $ colorRuleValue ->getLineNumber ()),
148148 'a ' => new Size (0000.3 , null , true , $ colorRuleValue ->getLineNumber ()),
149149 ], $ colorRuleValue ->getColor ());
150- $ colorRules = $ ruleSet ->getRules ('outline-color ' );
150+ $ colorRules = $ declarationBlock ->getRules ('outline-color ' );
151151 self ::assertEmpty ($ colorRules );
152152 }
153153 }
@@ -176,13 +176,13 @@ public function colorParsing(): void
176176 public function unicodeParsing (): void
177177 {
178178 $ document = self ::parsedStructureForFile ('unicode ' );
179- foreach ($ document ->getAllDeclarationBlocks () as $ ruleSet ) {
180- $ selectors = $ ruleSet ->getSelectors ();
179+ foreach ($ document ->getAllDeclarationBlocks () as $ declarationBlock ) {
180+ $ selectors = $ declarationBlock ->getSelectors ();
181181 $ selector = $ selectors [0 ]->getSelector ();
182182 if (\substr ($ selector , 0 , \strlen ('.test- ' )) !== '.test- ' ) {
183183 continue ;
184184 }
185- $ contentRules = $ ruleSet ->getRules ('content ' );
185+ $ contentRules = $ declarationBlock ->getRules ('content ' );
186186 $ firstContentRuleAsString = $ contentRules [0 ]->getValue ()->render (OutputFormat::create ());
187187 if ($ selector === '.test-1 ' ) {
188188 self ::assertSame ('" " ' , $ firstContentRuleAsString );
0 commit comments