getResponse() public method

Get the response object
public getResponse ( ) : Pop\Http\Response
return Pop\Http\Response
コード例 #1
0
ファイル: ControllerTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAndGetResponse()
 {
     $c = new Controller();
     $c->setResponse(new Response(200, array('Content-Type' => 'text/html')));
     $this->assertEquals(200, $c->getResponse()->getCode());
 }