/** * Creates a \Nimbles\Http\Response with the test delegate methods * @param array|null $options * @return \Nimbles\Http\Response */ public function createResponse($options = null) { $response = new Response($options); $response->setDelegate('write', array('\\Nimbles\\Http\\TestCase', 'setOutput')); $response->setDelegate('header', array('\\Nimbles\\Http\\TestCase', 'header')); $response->setDelegate('headers_sent', array($this, 'isHeadersSent')); return $response; }