You are here

public function EsiTest::testNeedsEsiParsing 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::testNeedsEsiParsing()

File

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

Class

EsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

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));
}