コード例 #1
0
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetResponse()
 {
     $exception = new HttpException();
     $exception->setResponse($expectedResponse = new Response());
     $this->assertSame($expectedResponse, $exception->getResponse());
 }
コード例 #2
0
ファイル: HttpExceptionTest.php プロジェクト: eamador/Payum
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetResponse()
 {
     $exception = new HttpException();
     $exception->setResponse($expectedResponse = $this->getMock('Psr\\Http\\Message\\ResponseInterface'));
     $this->assertSame($expectedResponse, $exception->getResponse());
 }