You are here

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

File

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

Class

SsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testAddSurrogateSsiCapability() {
  $ssi = new Ssi();
  $request = Request::create('/');
  $ssi
    ->addSurrogateCapability($request);
  $this
    ->assertEquals('symfony2="SSI/1.0"', $request->headers
    ->get('Surrogate-Capability'));
  $ssi
    ->addSurrogateCapability($request);
  $this
    ->assertEquals('symfony2="SSI/1.0", symfony2="SSI/1.0"', $request->headers
    ->get('Surrogate-Capability'));
}