Esempio n. 1
0
 public function parseChildrenValues($element)
 {
     $values = parent::parseChildrenValues($element);
     if ($element->link) {
         $values['link'] = (string) $element->link['href'];
     }
     return $values;
 }
Esempio n. 2
0
 public function testDownloadFailedQuitet()
 {
     $section = new Rss();
     $section->url = 'invalid';
     $section->showErrors = 0;
     $feed = new Feed();
     $section->processFeed($feed);
     $this->assertEmpty($feed->items);
 }