Exemplo n.º 1
0
 public function setRaw($header)
 {
     parent::setRaw($header);
 }
Exemplo n.º 2
0
 /**
  * Tests setting a raw response header
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-10-05
  */
 public function testHttpResponseHeadersRaw()
 {
     $this->specify("Setting a raw Response Header is not correct", function () {
         $responseHeaders = new PhResponseHeaders();
         $responseHeaders->setRaw('Content-Type: text/html');
         $actual = $responseHeaders->get('Content-Type: text/html');
         expect($actual)->isEmpty();
     });
 }