/**
  * @test
  */
 public function shouldAllowGetPreviouslySetResponse()
 {
     $exception = new HttpException();
     $exception->setResponse($expectedResponse = new Response());
     $this->assertSame($expectedResponse, $exception->getResponse());
 }
Пример #2
0
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetResponse()
 {
     $exception = new HttpException();
     $exception->setResponse($expectedResponse = $this->getMock('Psr\\Http\\Message\\ResponseInterface'));
     $this->assertSame($expectedResponse, $exception->getResponse());
 }