예제 #1
0
파일: Headers.php 프로젝트: lisong/cphalcon
 public function setRaw($header)
 {
     parent::setRaw($header);
 }
예제 #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();
     });
 }