/** * Tests conversion of {@link PaymentResponse} from XML file */ public function testPaymentResponseWithFraudFilterXmlFromFile() { $path = SampleXmlValidationUtils::PAYMENT_RESPONSE_WITH_FRAUD_FILTER_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::checkUnmarshalledPaymentResponseWithFraudFilter($fromXmlResponse, $this); }