removeHeaders() public method

Remove all headers
public removeHeaders ( ) : void
return void
Example #1
0
 /**
  * @covers \Bluz\Response\Response::removeHeaders
  */
 public function testRemoveHeaders()
 {
     $this->response->addHeader('foo', 'bar');
     $this->response->addHeader('baz', 'qux');
     $this->response->removeHeaders();
     $this->assertFalse($this->response->hasHeader('foo'));
     $this->assertFalse($this->response->hasHeader('baz'));
 }