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 3
3
namespace Sabberworm \CSS \Tests \RuleSet ;
4
4
5
5
use PHPUnit \Framework \TestCase ;
6
+ use Sabberworm \CSS \CSSList \Document ;
6
7
use Sabberworm \CSS \Parser ;
7
8
use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
8
9
use Sabberworm \CSS \Settings ;
@@ -135,11 +136,13 @@ public function caseInsensitivity(): void
135
136
/**
136
137
* @test
137
138
*/
138
- public function invalidColor (): void
139
+ public function cssWithInvalidColorStillGetsParsedAsDocument (): void
139
140
{
140
141
$ sFile = __DIR__ . '/../fixtures/invalid-color.css ' ;
141
142
$ 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 );
143
146
}
144
147
145
148
/**
You can’t perform that action at this time.
0 commit comments