public function InlineFragmentRendererTest::testRenderExceptionNoIgnoreErrors in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\InlineFragmentRendererTest::testRenderExceptionNoIgnoreErrors()
@expectedException \RuntimeException
File
- vendor/
symfony/ http-kernel/ Tests/ Fragment/ InlineFragmentRendererTest.php, line 85
Class
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
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());
}