public function HttpCacheTest::testCachesResponsesWithExplicitNoCacheDirective in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testCachesResponsesWithExplicitNoCacheDirective()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 409
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testCachesResponsesWithExplicitNoCacheDirective() {
$time = \DateTime::createFromFormat('U', time() + 5);
$this
->setNextResponse(200, array(
'Expires' => $time
->format(DATE_RFC2822),
'Cache-Control' => 'public, no-cache',
));
$this
->request('GET', '/');
$this
->assertTraceContains('store');
$this
->assertTrue($this->response->headers
->has('Age'));
}