Skip to content

Commit a49bd92

Browse files
committed
Use expectedException phpdoc tag
1 parent 1d0ef6f commit a49bd92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/ParserTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,11 +1187,10 @@ public function getInvalidIdentifiers()
11871187
*
11881188
* @param string $css CSS text.
11891189
* @test
1190+
* @expectedException \Sabberworm\CSS\Parsing\UnexpectedTokenException
11901191
*/
11911192
public function invalidIdentifier($css)
11921193
{
1193-
$this->expectException(UnexpectedTokenException::class);
1194-
11951194
$oSettings = Settings::create()->withLenientParsing(false);
11961195
$oParser = new Parser($css, $oSettings);
11971196
$oParser->parse();

0 commit comments

Comments
 (0)