File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php, line 97
Class
- InlineFragmentRendererTest
Namespace
Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer
Code
public function testRenderExceptionIgnoreErrorsWithAlt() {
$strategy = new InlineFragmentRenderer($this
->getKernel($this
->onConsecutiveCalls($this
->throwException(new \RuntimeException('foo')), $this
->returnValue(new Response('bar')))));
$this
->assertEquals('bar', $strategy
->render('/', Request::create('/'), array(
'ignore_errors' => true,
'alt' => '/foo',
))
->getContent());
}