You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/Controller/ControllerNameParserTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ public function testParse()
51
51
$parser->parse('foo:');
52
52
$this->fail('->parse() throws an \InvalidArgumentException if the controller is not an a:b:c string');
53
53
} catch (\Exception$e) {
54
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws an \InvalidArgumentException if the controller is not an a:b:c string');
54
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws an \InvalidArgumentException if the controller is not an a:b:c string');
$this->fail('->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
68
68
} catch (\Exception$e) {
69
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
69
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
$this->fail('->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
75
75
} catch (\Exception$e) {
76
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
76
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
$this->fail('->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
82
82
} catch (\Exception$e) {
83
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
83
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws an \InvalidArgumentException if the controller is not an aController::cAction string');
84
84
}
85
85
}
86
86
@@ -95,7 +95,7 @@ public function testMissingControllers($name)
95
95
$parser->parse($name);
96
96
$this->fail('->parse() throws a \InvalidArgumentException if the class is found but does not exist');
97
97
} catch (\Exception$e) {
98
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws a \InvalidArgumentException if the class is found but does not exist');
98
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws a \InvalidArgumentException if the class is found but does not exist');
99
99
}
100
100
}
101
101
@@ -125,7 +125,7 @@ public function testInvalidBundleName($bundleName, $suggestedBundleName)
125
125
$parser->parse($bundleName);
126
126
$this->fail('->parse() throws a \InvalidArgumentException if the bundle does not exist');
127
127
} catch (\Exception$e) {
128
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->parse() throws a \InvalidArgumentException if the bundle does not exist');
128
+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->parse() throws a \InvalidArgumentException if the bundle does not exist');
0 commit comments