public function testRSSLoad() { $loader = new Loader(); $root = $loader->process($this->getFile('episodes.xml')->getContents()); $this->assertInstanceOf('SimpleXMLElement', $root); $this->assertEquals('rss', $root->getName()); }
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)); } } }