Example #1
0
 public function testProPurchaseFailure()
 {
     $httpResponse = $this->getMockHttpResponse('ProPurchaseFailure.txt');
     $response = new Response($this->getMockRequest(), $httpResponse->getBody());
     $this->assertFalse($response->isPending());
     $this->assertFalse($response->isSuccessful());
     $this->assertNull($response->getTransactionReference());
     $this->assertSame('This transaction cannot be processed. Please enter a valid credit card expiration year.', $response->getMessage());
 }