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