File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 33namespace Sabberworm \CSS \Tests \RuleSet ;
44
55use PHPUnit \Framework \TestCase ;
6+ use Sabberworm \CSS \CSSList \Document ;
67use Sabberworm \CSS \Parser ;
78use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
89use Sabberworm \CSS \Settings ;
@@ -135,11 +136,13 @@ public function caseInsensitivity(): void
135136 /**
136137 * @test
137138 */
138- public function invalidColor (): void
139+ public function cssWithInvalidColorStillGetsParsedAsDocument (): void
139140 {
140141 $ sFile = __DIR__ . '/../fixtures/invalid-color.css ' ;
141142 $ oParser = new Parser (file_get_contents ($ sFile ), Settings::create ()->withLenientParsing (true ));
142- $ oParser ->parse ();
143+ $ result = $ oParser ->parse ();
144+
145+ self ::assertInstanceOf (Document::class, $ result );
143146 }
144147
145148 /**
You can’t perform that action at this time.
0 commit comments