/** * Tests conversion of {@link PaymentResponse} from XML file */ public function testPaymentResponseXmlDccInfoFromFile() { $path = SampleXmlValidationUtils::PAYMENT_RESPONSE_DCC_INFO_XML_PATH; $prefix = __DIR__ . '/../../../resources'; $xml = file_get_contents($prefix . $path); //unmarshal back to response /* @var PaymentResponse $fromXmlResponse */ $fromXmlResponse = new PaymentResponse(); $fromXmlResponse = $fromXmlResponse->fromXml($xml); SampleXmlValidationUtils::checkUnmarshalledDCCPaymentResponse($fromXmlResponse, $this); }