You are here

public function HttpKernelTest::testHandleWhenTheControllerIsAFunction in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpKernelTest.php \Symfony\Component\HttpKernel\Tests\HttpKernelTest::testHandleWhenTheControllerIsAFunction()

File

vendor/symfony/http-kernel/Tests/HttpKernelTest.php, line 185

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

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