@@ -37,23 +37,23 @@ public function testCssToXPath($css, $xpath)
3737
3838 public function testCssToXPathPseudoElement ()
3939 {
40- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
40+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
4141 $ translator = new Translator ();
4242 $ translator ->registerExtension (new HtmlExtension ($ translator ));
4343 $ translator ->cssToXPath ('e::first-line ' );
4444 }
4545
4646 public function testGetExtensionNotExistsExtension ()
4747 {
48- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
48+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
4949 $ translator = new Translator ();
5050 $ translator ->registerExtension (new HtmlExtension ($ translator ));
5151 $ translator ->getExtension ('fake ' );
5252 }
5353
5454 public function testAddCombinationNotExistsExtension ()
5555 {
56- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
56+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
5757 $ translator = new Translator ();
5858 $ translator ->registerExtension (new HtmlExtension ($ translator ));
5959 $ parser = new Parser ();
@@ -64,7 +64,7 @@ public function testAddCombinationNotExistsExtension()
6464
6565 public function testAddFunctionNotExistsFunction ()
6666 {
67- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
67+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
6868 $ translator = new Translator ();
6969 $ translator ->registerExtension (new HtmlExtension ($ translator ));
7070 $ xpath = new XPathExpr ();
@@ -74,7 +74,7 @@ public function testAddFunctionNotExistsFunction()
7474
7575 public function testAddPseudoClassNotExistsClass ()
7676 {
77- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
77+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
7878 $ translator = new Translator ();
7979 $ translator ->registerExtension (new HtmlExtension ($ translator ));
8080 $ xpath = new XPathExpr ();
@@ -83,7 +83,7 @@ public function testAddPseudoClassNotExistsClass()
8383
8484 public function testAddAttributeMatchingClassNotExistsClass ()
8585 {
86- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
86+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
8787 $ translator = new Translator ();
8888 $ translator ->registerExtension (new HtmlExtension ($ translator ));
8989 $ xpath = new XPathExpr ();
0 commit comments