/**
  * Tests resetting the response headers
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-10-05
  */
 public function testHttpResponseHeadersReset()
 {
     $this->specify("Resetting Response Headers is not correct", function () {
         $responseHeaders = new PhResponseHeaders();
         $responseHeaders->set('Content-Type', 'text/html');
         $responseHeaders->reset();
         $actual = $responseHeaders->get('Content-Type');
         expect($actual)->isEmpty();
     });
 }
Example #2
0
 public function reset()
 {
     parent::reset();
 }