Beispiel #1
0
 public function toArray()
 {
     return parent::toArray();
 }
 /**
  * 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);
     });
 }