public function testAuthorizeSuccess() { $httpResponse = $this->getMockHttpResponse('AuthorizeSuccess.txt'); $response = new Response($this->getMockRequest(), $httpResponse->getBody()); $this->assertTrue($response->isSuccessful()); $this->assertSame('123456789', $response->getTransactionReference()); $this->assertSame(null, $response->getMessage()); $this->assertSame('A', $response->getCode()); $this->assertSame('Approved', $response->getReasonCode()); $this->assertSame('630421', $response->getAuthorizationCode()); $this->assertSame('NNN', $response->getAVSCode()); $this->assertSame('4xxxxxxxxxxx2224', $response->getCard()); $this->assertSame('62d4fd9aebd240659d68ffaa156d1788', $response->getToken()); }