public function testFromXmlFile2() { $xml = file_get_contents(dirname(__FILE__).'/../fixtures/infos-du-net.xml'); $dom=DOMDocument::loadXML($xml,LIBXML_NOBLANKS); $temp= Atom_Element::fromXmlFile(dirname(__FILE__).'/../fixtures/infos-du-net.xml'); $this->assertEquals($dom->saveXml(), $temp->saveXml()); }
public function testPrintWithNamespaces() { $xml = file_get_contents(dirname(__FILE__).'/../fixtures/content.xml'); $temp=Atom_Element::fromXmlFile(dirname(__FILE__).'/../fixtures/content.xml'); $this->assertEquals($xml, $temp->saveXML()); }