Example #1
0
 public function testPurchaseFailure()
 {
     $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt');
     $response = new Response($this->getMockRequest(), $httpResponse->json());
     $this->assertFalse($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertNull($response->getTransactionReference());
     $this->assertSame('The current resource was deemed invalid.', $response->getMessage());
 }