public function testSetGenerator() { $this->fixture->setGenerator(new Atom_Generator('Example toolkit')); $xml=$this->fixture->saveXml(); $temp=Atom_Element::fromXml($xml); $this->assertEquals($xml,$temp->saveXml()); }
public function testPrint() { $xml=$this->fixture->saveXml(); $temp=Atom_Element::fromXml($xml); $this->assertEquals($xml, $temp->saveXML()); }
public function testPrint() { $this->fixture->add(new Atom_Title('Example feed')); $this->fixture->add(new Atom_Author('Jemba','*****@*****.**')); $this->fixture->add(new Atom_Contributor('Rivoallan','*****@*****.**')); $this->fixture->add(new Atom_Category('CPU',array('term'=>'technology'))); $this->fixture->add(new Atom_Updated(new DateTime())); $this->fixture->add(new Atom_Id('urn:uuid:60a76c80-d399-11d9-b93C-5798hnt64')); $this->fixture->add(new Atom_Link('',array('rel'=>'self', 'href'=>'http://www.validome.org/check/RSS_validator/version/atom_1_0/action/xml/feed/400'))); $this->fixture->add(new Atom_Rights('content',array('type'=>'text'))); $xml=$this->fixture->saveXml(); $temp=Atom_Element::fromXml($xml); $this->assertEquals($xml, $temp->saveXML()); }
public function testFromXml() { $xml = file_get_contents(dirname(__FILE__).'/../fixtures/feed.xml'); $temp= Atom_Element::fromXml($xml); $this->assertEquals($xml, $temp->saveXml()); }