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