You are here

public function ControllerResolverTest::testGetControllerWithClassAndInvokeMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ControllerResolverTest

Namespace

Symfony\Component\HttpKernel\Tests\Controller

Code

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);
}