public function HttpKernelTest::testHandleWhenNoControllerIsFound

@expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException

File

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

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testHandleWhenNoControllerIsFound() {
  $dispatcher = new EventDispatcher();
  $kernel = new HttpKernel($dispatcher, $this
    ->getResolver(false));
  $kernel
    ->handle(new Request());
}