public function InlineFragmentRendererTest::testRenderExceptionIgnoreErrors in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\InlineFragmentRendererTest::testRenderExceptionIgnoreErrors()
File
- vendor/
symfony/ http-kernel/ Tests/ Fragment/ InlineFragmentRendererTest.php, line 95
Class
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
public function testRenderExceptionIgnoreErrors() {
$dispatcher = $this
->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$dispatcher
->expects($this
->once())
->method('dispatch')
->with(KernelEvents::EXCEPTION);
$strategy = new InlineFragmentRenderer($this
->getKernel($this
->throwException(new \RuntimeException('foo'))), $dispatcher);
$this
->assertEmpty($strategy
->render('/', Request::create('/'), array(
'ignore_errors' => true,
))
->getContent());
}