public function HttpKernelTest::testHandleWhenTheControllerIsAnArray 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::testHandleWhenTheControllerIsAnArray()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpKernelTest.php, line 193
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testHandleWhenTheControllerIsAnArray() {
$dispatcher = new EventDispatcher();
$kernel = new HttpKernel($dispatcher, $this
->getResolver(array(
new Controller(),
'controller',
)));
$this
->assertResponseEquals(new Response('foo'), $kernel
->handle(new Request()));
}