public function HttpCacheTest::testCachesResponsesWithALastModifiedValidatorButNoFreshnessInformation 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::testCachesResponsesWithALastModifiedValidatorButNoFreshnessInformation()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 468
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testCachesResponsesWithALastModifiedValidatorButNoFreshnessInformation() {
$time = \DateTime::createFromFormat('U', time());
$this
->setNextResponse(200, array(
'Cache-Control' => 'public',
'Last-Modified' => $time
->format(DATE_RFC2822),
));
$this
->request('GET', '/');
$this
->assertEquals(200, $this->response
->getStatusCode());
$this
->assertEquals('Hello World', $this->response
->getContent());
$this
->assertTraceContains('miss');
$this
->assertTraceContains('store');
}