/** * Get XML representation. * * @return string XML string */ function asXml() { return $this->sxe->asXML(); }
function testCanGetNameOfRootObject() { $xml = new T_Xml('<root>data</root>'); $expect = new T_Xml_Element('<root>data</root>'); $this->assertSame($xml->getName(), $expect->getName()); }