You are here

public function ExceptionHandlerTest::testNestedExceptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/debug/Tests/ExceptionHandlerTest.php \Symfony\Component\Debug\Tests\ExceptionHandlerTest::testNestedExceptions()

File

vendor/symfony/debug/Tests/ExceptionHandlerTest.php, line 89

Class

ExceptionHandlerTest

Namespace

Symfony\Component\Debug\Tests

Code

public function testNestedExceptions() {
  $handler = new ExceptionHandler(true);
  ob_start();
  $handler
    ->sendPhpResponse(new \RuntimeException('Foo', 0, new \RuntimeException('Bar')));
  $response = ob_get_clean();
  $this
    ->assertStringMatchesFormat('%A<span class="exception_message">Foo</span>%A<span class="exception_message">Bar</span>%A', $response);
}