public function testXmlToSimpleXMLObject() { $transformer = new XmlToSimpleXmlObject(); $sampleXML = $this->getSampleXMLResponse(); $simpleXML = $transformer->transform($sampleXML); $this->assertInstanceOf('\\SimpleXMLElement', $simpleXML); $this->assertEquals('Wikipedia Städteverzeichnis', $simpleXML->titel); $this->assertEquals('Genf', $simpleXML->eintrag[0]->stichwort); }