public function HttpKernelTest::testHandleWhenTheControllerIsAFunction in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpKernelTest.php \Symfony\Component\HttpKernel\Tests\HttpKernelTest::testHandleWhenTheControllerIsAFunction()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpKernelTest.php, line 185
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testHandleWhenTheControllerIsAFunction() {
$dispatcher = new EventDispatcher();
$kernel = new HttpKernel($dispatcher, $this
->getResolver('Symfony\\Component\\HttpKernel\\Tests\\controller_func'));
$this
->assertResponseEquals(new Response('foo'), $kernel
->handle(new Request()));
}