public function ResponseTest::testMustRevalidateWithMustRevalidateCacheControlHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testMustRevalidateWithMustRevalidateCacheControlHeader()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 108
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testMustRevalidateWithMustRevalidateCacheControlHeader() {
$response = new Response();
$response->headers
->set('cache-control', 'must-revalidate');
$this
->assertTrue($response
->mustRevalidate());
}