You are here

public function HttpCacheTestCase::setNextResponse 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::setNextResponse()
49 calls to HttpCacheTestCase::setNextResponse()
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 139

Class

HttpCacheTestCase

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function setNextResponse($statusCode = 200, array $headers = array(), $body = 'Hello World', \Closure $customizer = null) {
  $this->kernel = new TestHttpKernel($body, $statusCode, $headers, $customizer);
}