You are here

public function InlineFragmentRendererTest::testRenderExceptionIgnoreErrorsWithAlt in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\InlineFragmentRendererTest::testRenderExceptionIgnoreErrorsWithAlt()

File

vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php, line 105

Class

InlineFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

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