public function test_round_trip_xml_to_dom_and_back()
 {
     $orig = '<foo>bar</foo>';
     $dom = XmlParser::domParser($orig);
     $after = XmlParser::getDomDocumentAsString($dom);
     $cleanedUp = str_replace('<?xml version="1.0" encoding="UTF-8"?>', '', $after);
     $cleanedUp = str_replace("\n", '', $cleanedUp);
     $this->assertEquals($orig, $cleanedUp);
 }
 /**
  * Get the entire response as a string.
  *
  * This method wraps the XmlParser static call in the SDK.
  *
  * @param DomDocument $dom
  *   The response.
  *
  * @return bool|string
  *   The full response as a string of XML, or FALSE.
  */
 public function getDomDocumentAsString($dom)
 {
     return \litle\sdk\XmlParser::getDomDocumentAsString($dom);
 }