public function HttpCacheTestCase::assertTraceContains

32 calls to HttpCacheTestCase::assertTraceContains()
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformation in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithALastModifiedValidatorButNoFreshnessInformation in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAMaxAgeDirective in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAnETagValidatorButNoFreshnessInformation in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAnExpirationHeader in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

... See full list

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php, line 84

Class

HttpCacheTestCase

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function assertTraceContains($trace) {
  $traces = $this->cache
    ->getTraces();
  $traces = current($traces);
  $this
    ->assertRegExp('/' . $trace . '/', implode(', ', $traces));
}