public function HttpKernelTest::testHandleWhenTheControllerIsAStaticArray

File

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

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testHandleWhenTheControllerIsAStaticArray() {
  $dispatcher = new EventDispatcher();
  $kernel = new HttpKernel($dispatcher, $this
    ->getResolver(array(
    'Symfony\\Component\\HttpKernel\\Tests\\Controller',
    'staticcontroller',
  )));
  $this
    ->assertResponseEquals(new Response('foo'), $kernel
    ->handle(new Request()));
}