예제 #1
0
파일: Headers.php 프로젝트: lisong/cphalcon
 public function toArray()
 {
     return parent::toArray();
 }
예제 #2
0
 /**
  * Tests toArray in response headers
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-10-05
  */
 public function testHttpResponseHeadersToArray()
 {
     $this->specify("toArray in Response Headers is not correct", function () {
         $responseHeaders = new PhResponseHeaders();
         $responseHeaders->set('Content-Type', 'text/html');
         $expected = $responseHeaders->toArray();
         $actual = ['Content-Type' => 'text/html'];
         expect($actual)->equals($expected);
     });
 }