public function testUrl() { $xml = new SimpleXMLElement(file_get_contents(__DIR__ . '/card-capture-response.xml')); $response = new CardCaptureResponse($xml, new CardCaptureRequest($this->url, $this->clientId, $this->password)); $route = $response->getRoute(); $sessionId = $response->getSessionId(); $this->assertEquals("{$route}?HPS_SessionID={$sessionId}", $response->getUrl()); }
public function __construct(SimpleXMLElement $xml, PurchaseRequest $request) { parent::__construct($xml, $request); }