public function EsiTest::testNeedsEsiParsing in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::testNeedsEsiParsing()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php, line 61
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testNeedsEsiParsing() {
$esi = new Esi();
$response = new Response();
$response->headers
->set('Surrogate-Control', 'content="ESI/1.0"');
$this
->assertTrue($esi
->needsParsing($response));
$response = new Response();
$this
->assertFalse($esi
->needsParsing($response));
}