You are here

public function SsiTest::testNeedsSsiParsing 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::testNeedsSsiParsing()

File

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

Class

SsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testNeedsSsiParsing() {
  $ssi = new Ssi();
  $response = new Response();
  $response->headers
    ->set('Surrogate-Control', 'content="SSI/1.0"');
  $this
    ->assertTrue($ssi
    ->needsParsing($response));
  $response = new Response();
  $this
    ->assertFalse($ssi
    ->needsParsing($response));
}