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'); }