public function export() { return array($this->getStatus()->getCode(), $this->getHeaders()->toArray($crlf = false), (string) $this->getBody()); }
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')); }