You are here

public function HttpCacheTestCase::assertTraceContains in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTestCase.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTestCase::assertTraceContains()
34 calls to HttpCacheTestCase::assertTraceContains()
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformation in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformationAndAfterTtlWasExpired in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformationAndAfterTtlWasExpiredWithStatus304 in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithALastModifiedValidatorButNoFreshnessInformation in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testCachesResponsesWithAMaxAgeDirective in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php

... See full list

File

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

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));
}