@@ -37,23 +37,23 @@ public function testCssToXPath($css, $xpath)
37
37
38
38
public function testCssToXPathPseudoElement ()
39
39
{
40
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
40
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
41
41
$ translator = new Translator ();
42
42
$ translator ->registerExtension (new HtmlExtension ($ translator ));
43
43
$ translator ->cssToXPath ('e::first-line ' );
44
44
}
45
45
46
46
public function testGetExtensionNotExistsExtension ()
47
47
{
48
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
48
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
49
49
$ translator = new Translator ();
50
50
$ translator ->registerExtension (new HtmlExtension ($ translator ));
51
51
$ translator ->getExtension ('fake ' );
52
52
}
53
53
54
54
public function testAddCombinationNotExistsExtension ()
55
55
{
56
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
56
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
57
57
$ translator = new Translator ();
58
58
$ translator ->registerExtension (new HtmlExtension ($ translator ));
59
59
$ parser = new Parser ();
@@ -64,7 +64,7 @@ public function testAddCombinationNotExistsExtension()
64
64
65
65
public function testAddFunctionNotExistsFunction ()
66
66
{
67
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
67
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
68
68
$ translator = new Translator ();
69
69
$ translator ->registerExtension (new HtmlExtension ($ translator ));
70
70
$ xpath = new XPathExpr ();
@@ -74,7 +74,7 @@ public function testAddFunctionNotExistsFunction()
74
74
75
75
public function testAddPseudoClassNotExistsClass ()
76
76
{
77
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
77
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
78
78
$ translator = new Translator ();
79
79
$ translator ->registerExtension (new HtmlExtension ($ translator ));
80
80
$ xpath = new XPathExpr ();
@@ -83,7 +83,7 @@ public function testAddPseudoClassNotExistsClass()
83
83
84
84
public function testAddAttributeMatchingClassNotExistsClass ()
85
85
{
86
- $ this ->expectException (' Symfony\Component\CssSelector\Exception\ExpressionErrorException ' );
86
+ $ this ->expectException (\ Symfony \Component \CssSelector \Exception \ExpressionErrorException::class );
87
87
$ translator = new Translator ();
88
88
$ translator ->registerExtension (new HtmlExtension ($ translator ));
89
89
$ xpath = new XPathExpr ();
0 commit comments