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/TemplateControllerTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public function testNoTwigInvokeMethod()
47
47
$controller = newTemplateController();
48
48
49
49
$this->expectException(\LogicException::class);
50
-
$this->expectExceptionMessage('You cannot use the TemplateController if the Twig Bundle is not available.');
50
+
$this->expectExceptionMessage('You cannot use the TemplateController if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
$this->expectExceptionMessage('You have requested a non-existent parameter "nope".');
398
+
393
399
$router->getRouteCollection()->get('foo');
394
400
}
395
401
396
402
publicfunctiontestExceptionOnNonStringParameter()
397
403
{
398
-
$this->expectException(RuntimeException::class);
399
-
$this->expectExceptionMessage('The container parameter "object", used in the route configuration value "/%object%", must be a string or numeric, but it is of type "stdClass".');
400
404
$routes = newRouteCollection();
401
405
402
406
$routes->add('foo', newRoute('/%object%'));
@@ -405,6 +409,10 @@ public function testExceptionOnNonStringParameter()
405
409
$parameters = $this->getParameterBag(['object' => new \stdClass()]);
$this->expectExceptionMessage('The container parameter "object", used in the route configuration value "/%object%", must be a string or numeric, but it is of type "stdClass".');
0 commit comments