public function testPurchaseFailure() { $this->setMockHttpResponse('PurchaseFailure.txt'); $response = $this->gateway->purchase($this->paymentOptions)->send(); $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('Authorization Declined.', $response->getMessage()); }