public function ResponseTest::testSetPublic 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::testSetPublic()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 618
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetPublic() {
$response = new Response();
$response
->setPublic();
$this
->assertTrue($response->headers
->hasCacheControlDirective('public'));
$this
->assertFalse($response->headers
->hasCacheControlDirective('private'));
}