public function HttpKernelTest::testHandleWhenTheControllerIsAnArray

File

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

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

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