Пример #1
0
 /**
  * Wrapper to fetch feeds
  * 
  * @param String $url
  * 
  * @return \Feedtcher\Feed
  */
 public static function fetch($url)
 {
     $feedtech = new Feedtcher($url);
     return $feedtech->doFetch();
 }
Пример #2
0
 /**
  * @expectedException Exception
  */
 public function testNotValidUrl()
 {
     $url = 'http://zaranga.lol.fail';
     $feed = \Feedtcher\Feedtcher::fetch($url);
 }