/** * Tests conversion of {@link PaymentRequest} from XML file for payer-new payment types. */ public function testPaymentRequestXmlFromFileCardEditReplaceIssueNo() { $path = SampleXmlValidationUtils::CARD_EDIT_UPDATE_ISSUE_NO_PAYMENT_REQUEST_XML_PATH; $prefix = __DIR__ . '/../../../resources'; $xml = file_get_contents($prefix . $path); //unmarshal back to response /* @var PaymentRequest $fromXmlRequest */ $fromXmlRequest = new PaymentRequest(); $fromXmlRequest = $fromXmlRequest->fromXml($xml); SampleXmlValidationUtils::checkUnmarshalledCardEditReplaceIssueNoPaymentRequest($fromXmlRequest, $this); }