@@ -202,13 +202,13 @@ public function unicodeParsing(): void
202202 self ::assertSame ('"¥" ' , $ sString );
203203 }
204204 if ($ sSelector == '.test-7 ' ) {
205- self ::assertSame ('"\A" ' , $ sString );
205+ self ::assertSame ('" \\ A" ' , $ sString );
206206 }
207207 if ($ sSelector == '.test-8 ' ) {
208- self ::assertSame ('"\" \"" ' , $ sString );
208+ self ::assertSame ('" \\ " \ \"" ' , $ sString );
209209 }
210210 if ($ sSelector == '.test-9 ' ) {
211- self ::assertSame ('"\" \\\'" ' , $ sString );
211+ self ::assertSame ('" \\ " \\\'" ' , $ sString );
212212 }
213213 if ($ sSelector == '.test-10 ' ) {
214214 self ::assertSame ('" \\\'\\\\" ' , $ sString );
@@ -795,8 +795,8 @@ public function invalidSelectorsInFile(): void
795795 public function selectorEscapesInFile (): void
796796 {
797797 $ oDoc = self ::parsedStructureForFile ('selector-escapes ' , Settings::create ()->withMultibyteSupport (true ));
798- $ sExpected = '#\# {color: red;}
799- .col-sm-1\/5 {width: 20%;} ' ;
798+ $ sExpected = '# \\ # {color: red;}
799+ .col-sm-1 \\ /5 {width: 20%;} ' ;
800800 self ::assertSame ($ sExpected , $ oDoc ->render ());
801801
802802 $ oDoc = self ::parsedStructureForFile ('invalid-selectors-2 ' , Settings::create ()->withMultibyteSupport (true ));
@@ -815,8 +815,8 @@ public function selectorEscapesInFile(): void
815815 public function identifierEscapesInFile (): void
816816 {
817817 $ oDoc = self ::parsedStructureForFile ('identifier-escapes ' , Settings::create ()->withMultibyteSupport (true ));
818- $ sExpected = 'div {font: 14px Font Awesome\ 5 Pro;font: 14px Font Awesome\} 5 Pro; '
819- . 'font: 14px Font Awesome\; 5 Pro;f\;ont: 14px Font Awesome\; 5 Pro;} ' ;
818+ $ sExpected = 'div {font: 14px Font Awesome \\ 5 Pro;font: 14px Font Awesome \ \} 5 Pro; '
819+ . 'font: 14px Font Awesome \\ ; 5 Pro;f \\ ;ont: 14px Font Awesome \ \; 5 Pro;} ' ;
820820 self ::assertSame ($ sExpected , $ oDoc ->render ());
821821 }
822822
@@ -1103,8 +1103,8 @@ public function ieHacksStrictParsing(): void
11031103 public function ieHacksParsing (): void
11041104 {
11051105 $ oDoc = self ::parsedStructureForFile ('ie-hacks ' , Settings::create ()->withLenientParsing (true ));
1106- $ sExpected = 'p {padding-right: .75rem \9;background-image: none \9;color: red \9 \0; '
1107- . 'background-color: red \9\ 0;background-color: red \9\ 0 !important;content: "red \0";content: "red઼";} ' ;
1106+ $ sExpected = 'p {padding-right: .75rem \\ 9;background-image: none \\ 9;color: red \\ 9 \ \0; '
1107+ . 'background-color: red \\ 9 \\ 0;background-color: red \\ 9 \\ 0 !important;content: "red \ \0";content: "red઼";} ' ;
11081108 self ::assertSame ($ sExpected , $ oDoc ->render ());
11091109 }
11101110
@@ -1246,7 +1246,7 @@ public function escapedSpecialCaseTokens(): void
12461246 $ rules = $ contents [0 ]->getRules ();
12471247 $ urlRule = $ rules [0 ];
12481248 $ calcRule = $ rules [1 ];
1249- self ::assertTrue (\is_a ($ urlRule ->getValue (), '\Sabberworm\CSS\Value\URL ' ));
1250- self ::assertTrue (\is_a ($ calcRule ->getValue (), '\Sabberworm\CSS\Value\CalcFunction ' ));
1249+ self ::assertTrue (\is_a ($ urlRule ->getValue (), '\\ Sabberworm \\ CSS \\ Value \ \URL ' ));
1250+ self ::assertTrue (\is_a ($ calcRule ->getValue (), '\\ Sabberworm \\ CSS \\ Value \ \CalcFunction ' ));
12511251 }
12521252}
0 commit comments