You are here

public function HttpKernelTest::testHandleWhenTheControllerIsAnObjectWithInvoke in Zircon Profile 8.0

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

File

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

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