You are here

public function HttpKernelTest::testHandleWhenControllerThrowsAnExceptionAndCatchIsFalseAndNoListenerIsRegistered in Zircon Profile 8

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

@expectedException \RuntimeException

File

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

Class

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testHandleWhenControllerThrowsAnExceptionAndCatchIsFalseAndNoListenerIsRegistered() {
  $kernel = new HttpKernel(new EventDispatcher(), $this
    ->getResolver(function () {
    throw new \RuntimeException();
  }));
  $kernel
    ->handle(new Request(), HttpKernelInterface::MASTER_REQUEST, false);
}