Ergo\Http\Response::export PHP 메소드

export() 공개 메소드

public export ( ) : array
리턴 array
    public function export()
    {
        return array($this->getStatus()->getCode(), $this->getHeaders()->toArray($crlf = false), (string) $this->getBody());
    }

Usage Example

예제 #1
0
 public function testExport()
 {
     $response = new Http\Response(200, array('Content-Type: text/html'), 'Food goes in here');
     $this->assertEquals($response->export(), array(200, array('Content-Type: text/html'), 'Food goes in here'));
 }