Ejemplo n.º 1
0
 public function testRSSLoad()
 {
     $loader = new Loader();
     $root = $loader->process($this->getFile('episodes.xml')->getContents());
     $this->assertInstanceOf('SimpleXMLElement', $root);
     $this->assertEquals('rss', $root->getName());
 }
Ejemplo n.º 2
0
 public function init()
 {
     if (!$this->init) {
         $this->xml = $this->xmlLoader->process($this->getURLContents());
         if ($this->xml === FALSE) {
             throw new Exception('XML konnte nicht geparsed werden. Fehlerhafter Content in URL. ' . $this->url . ' ' . mb_substr($content, 0, 200));
         }
     }
 }