You are here

public function SsiTest::testHandleWhenResponseIsNot200 in Zircon Profile 8

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

@expectedException \RuntimeException

File

vendor/symfony/http-kernel/Tests/HttpCache/SsiTest.php, line 165

Class

SsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

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