@expectedException \RuntimeException
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());
}