public function transform($response) { $document = new \DOMDocument('1.0', 'UTF-8'); $document->loadXML($response); return $document; }
public function testXmlToDomDocument() { $transformer = new XmlToDomDocument(); $xml = $this->getSampleXMLResponse(); $document = $transformer->transform($xml); $this->assertInstanceOf('\\DOMDocument', $document); }