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