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