You are here

public function EsiTest::testHandleWhenResponseIsNot200 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::testHandleWhenResponseIsNot200()

@expectedException \RuntimeException

File

vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php, line 198

Class

EsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testHandleWhenResponseIsNot200() {
  $esi = new Esi();
  $response = new Response('foo');
  $response
    ->setStatusCode(404);
  $cache = $this
    ->getCache(Request::create('/'), $response);
  $esi
    ->handle($cache, '/', '/alt', false);
}