You are here

public function FragmentHandlerTest::testDeliverWithUnsuccessfulResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

FragmentHandlerTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function testDeliverWithUnsuccessfulResponse() {
  $handler = $this
    ->getHandler($this
    ->returnValue(new Response('foo', 404)));
  $handler
    ->render('/', 'foo');
}