Example #1
0
 /**
  * @group mock
  */
 public function testMockPurchaseSuccess()
 {
     $httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt');
     $response = new Response($this->getMockRequest(), $httpResponse->getBody());
     $this->assertTrue($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertSame('0', $response->getTransactionReference());
     $this->assertSame('TESTMD', $response->getAuthorizationCode());
     $this->assertEquals('', $response->getMessage());
 }