You are here

public function HttpCacheTestCase::getMetaStorageValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTestCase.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTestCase::getMetaStorageValues()
6 calls to HttpCacheTestCase::getMetaStorageValues()
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformationAndAfterTtlWasExpired in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformationAndAfterTtlWasExpiredWithStatus304 in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAMaxAgeDirective in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAnExpirationHeader in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithASMaxAgeDirective in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php

... See full list

File

vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTestCase.php, line 128

Class

HttpCacheTestCase

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function getMetaStorageValues() {
  $values = array();
  foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(sys_get_temp_dir() . '/http_cache/md', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
    $values[] = file_get_contents($file);
  }
  return $values;
}