public function ControllerResolverTest::testGetControllerWithObjectAndMethod 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::testGetControllerWithObjectAndMethod()
File
- vendor/
symfony/ http-kernel/ Tests/ Controller/ ControllerResolverTest.php, line 50
Class
Namespace
Symfony\Component\HttpKernel\Tests\ControllerCode
public function testGetControllerWithObjectAndMethod() {
$resolver = $this
->createControllerResolver();
$request = Request::create('/');
$request->attributes
->set('_controller', array(
$this,
'controllerMethod1',
));
$controller = $resolver
->getController($request);
$this
->assertSame(array(
$this,
'controllerMethod1',
), $controller);
}