public function EsiTest::testHandleWhenResponseIsNot200AndAltIsPresent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::testHandleWhenResponseIsNot200AndAltIsPresent()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php, line 216
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testHandleWhenResponseIsNot200AndAltIsPresent() {
$esi = new Esi();
$response1 = new Response('foo');
$response1
->setStatusCode(404);
$response2 = new Response('bar');
$cache = $this
->getCache(Request::create('/'), array(
$response1,
$response2,
));
$this
->assertEquals('bar', $esi
->handle($cache, '/', '/alt', false));
}