public function HttpKernelTest::testHandleWhenTheControllerIsAFunction

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php, line 177

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