public function HttpKernelTest::testHandleWhenTheControllerIsAnObjectWithInvoke

File

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

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testHandleWhenTheControllerIsAnObjectWithInvoke() {
  $dispatcher = new EventDispatcher();
  $kernel = new HttpKernel($dispatcher, $this
    ->getResolver(new Controller()));
  $this
    ->assertResponseEquals(new Response('foo'), $kernel
    ->handle(new Request()));
}