public function InlineFragmentRendererTest::testRenderExceptionNoIgnoreErrors

@expectedException \RuntimeException

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php, line 77

Class

InlineFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer

Code

public function testRenderExceptionNoIgnoreErrors() {
  $dispatcher = $this
    ->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
  $dispatcher
    ->expects($this
    ->never())
    ->method('dispatch');
  $strategy = new InlineFragmentRenderer($this
    ->getKernel($this
    ->throwException(new \RuntimeException('foo'))), $dispatcher);
  $this
    ->assertEquals('foo', $strategy
    ->render('/', Request::create('/'))
    ->getContent());
}