protected function CommonSyndicationParserTest::readFeed in Feeds 8.2
Helper to read a feed.
3 calls to CommonSyndicationParserTest::readFeed()
- CommonSyndicationParserTest::_testAtomGeoRSS in lib/
Drupal/ feeds/ Tests/ CommonSyndicationParserTest.php - Test Geo RSS in Atom feed.
- CommonSyndicationParserTest::_testRSS10 in lib/
Drupal/ feeds/ Tests/ CommonSyndicationParserTest.php - Test RSS 1.0.
- CommonSyndicationParserTest::_testRSS2 in lib/
Drupal/ feeds/ Tests/ CommonSyndicationParserTest.php - Test RSS 2.
File
- lib/
Drupal/ feeds/ Tests/ CommonSyndicationParserTest.php, line 90 - Tests for the common syndication parser.
Class
- CommonSyndicationParserTest
- Test cases for common syndication parser library.
Namespace
Drupal\feeds\TestsCode
protected function readFeed($filename) {
$feed = drupal_get_path('module', 'feeds_tests') . '/feeds/' . $filename;
$handle = fopen($feed, 'r');
$string = fread($handle, filesize($feed));
fclose($handle);
return $string;
}