public function FragmentHandlerTest::testDeliverWithUnsuccessfulResponse in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php \Symfony\Component\HttpKernel\Tests\Fragment\FragmentHandlerTest::testDeliverWithUnsuccessfulResponse()
@expectedException \RuntimeException @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404).
File
- vendor/
symfony/ http-kernel/ Tests/ Fragment/ FragmentHandlerTest.php, line 58
Class
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
public function testDeliverWithUnsuccessfulResponse() {
$handler = $this
->getHandler($this
->returnValue(new Response('foo', 404)));
$handler
->render('/', 'foo');
}