You are here

public function StoreTest::testRestoresResponseHeadersProperlyWithLookup in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\StoreTest::testRestoresResponseHeadersProperlyWithLookup()

File

vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php, line 130

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testRestoresResponseHeadersProperlyWithLookup() {
  $this
    ->storeSimpleEntry();
  $response = $this->store
    ->lookup($this->request);
  $this
    ->assertEquals($response->headers
    ->all(), array_merge(array(
    'content-length' => 4,
    'x-body-file' => array(
      $this
        ->getStorePath($response->headers
        ->get('X-Content-Digest')),
    ),
  ), $this->response->headers
    ->all()));
}