public function testPurchaseFailure()
 {
     $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt');
     $response = new Response($this->getMockRequest(), $httpResponse->getBody(true));
     $this->assertFalse($response->isSuccessful());
     $this->assertSame('3', $response->getResult());
     $this->assertSame(null, $response->getTransactionReference());
     $this->assertSame('Transaction was rejected by gateway.', $response->getMessage());
     $this->assertSame('Transaction not found REFID:3171995699', $response->getText());
 }
 public function __construct(RequestInterface $request, $data)
 {
     parent::__construct($request, $data);
     $this->request = $request;
     $this->data = $data;
 }