public function testRefundFailure() { $httpResponse = $this->getMockHttpResponse('RefundFailure.txt'); $response = new Response($this->getMockRequest(), $httpResponse->getBody()); $this->assertFalse($response->isSuccessful()); $this->assertSame('123456789', $response->getTransactionReference()); $this->assertSame('UNSUPPORTED CARD TYPE', $response->getMessage()); $this->assertSame('D', $response->getCode()); $this->assertSame('Declined', $response->getReasonCode()); $this->assertSame('', $response->getAuthorizationCode()); $this->assertSame('', $response->getAVSCode()); }