public function ResponseTest::testSetEtag 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::testSetEtag()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 791
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetEtag() {
$response = new Response('', 200, array(
'ETag' => '"12345"',
));
$response
->setEtag();
$this
->assertNull($response->headers
->get('Etag'), '->setEtag() removes Etags when call with null');
}