public function createSimplePieObject($fileName) { $filePath = self::calcFixtureFilePath($fileName); $feed = new SimplePie(); $feed->set_file(new SimplePie_File($filePath)); $feed->set_cache_location(sfConfig::get('sf_cache_dir')); if (!@$feed->init()) { return false; } return $feed; }
function test() { $feed = new SimplePie(); $feed->set_file($this->data['file']); $feed->enable_cache(false); $feed->init(); $this->result = $feed->get_link(); }