function response($xmlFixtureFile) { $data = XmlSerializer::dom2hash(new \SimpleXMLElement(JsonSchemaFixture::response($xmlFixtureFile))); return $data['payment_response']; }
/** * @param string xml * @return array */ function parseXml($xml) { $dom = new \SimpleXMLElement($xml); return XmlSerializer::dom2hash($dom); }