public function ControllerResolverTest::testGetControllerWithClassAndInvokeMethod in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Controller/ControllerResolverTest.php \Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::testGetControllerWithClassAndInvokeMethod()
File
- vendor/
symfony/ http-kernel/ Tests/ Controller/ ControllerResolverTest.php, line 80
Class
Namespace
Symfony\Component\HttpKernel\Tests\ControllerCode
public function testGetControllerWithClassAndInvokeMethod() {
$resolver = $this
->createControllerResolver();
$request = Request::create('/');
$request->attributes
->set('_controller', 'Symfony\\Component\\HttpKernel\\Tests\\Controller\\ControllerResolverTest');
$controller = $resolver
->getController($request);
$this
->assertInstanceOf('Symfony\\Component\\HttpKernel\\Tests\\Controller\\ControllerResolverTest', $controller);
}