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