示例#1
0
文件: Atom.php 项目: urmaul/rss-pipes
 public function parseChildrenValues($element)
 {
     $values = parent::parseChildrenValues($element);
     if ($element->link) {
         $values['link'] = (string) $element->link['href'];
     }
     return $values;
 }
示例#2
0
 public function testDownloadFailedQuitet()
 {
     $section = new Rss();
     $section->url = 'invalid';
     $section->showErrors = 0;
     $feed = new Feed();
     $section->processFeed($feed);
     $this->assertEmpty($feed->items);
 }