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());
}