You are here

protected function StoreTest::getStoreMetadata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\StoreTest::getStoreMetadata()
6 calls to StoreTest::getStoreMetadata()
StoreTest::testOverwritesNonVaryingResponseWithStore in vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php
StoreTest::testReadsAnEmptyArrayWithReadWhenNothingCachedAtKey in vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php
StoreTest::testRemovesEntriesForKeyWithPurge in vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php
StoreTest::testSetsTheXContentDigestResponseHeaderBeforeStoring in vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php
StoreTest::testStoresACacheEntry in vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php

... See full list

File

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

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

protected function getStoreMetadata($key) {
  $r = new \ReflectionObject($this->store);
  $m = $r
    ->getMethod('getMetadata');
  $m
    ->setAccessible(true);
  if ($key instanceof Request) {
    $m1 = $r
      ->getMethod('getCacheKey');
    $m1
      ->setAccessible(true);
    $key = $m1
      ->invoke($this->store, $key);
  }
  return $m
    ->invoke($this->store, $key);
}