public function testFeedReaderYandexRss() { $feedChannel = FeedReader::create()->parseFile(dirname(__FILE__) . '/data/feedReader/yandex_rss.xml'); $feedItems = $feedChannel->getFeedItems(); $this->assertTrue($feedChannel instanceof FeedChannel); $this->assertTrue($feedItems[1] instanceof YandexRssFeedItem); $this->assertEquals(count($feedItems), 3); $this->assertEquals($feedChannel->getTitle(), 'RSS understanding'); $feedItem = $feedItems[1]; $this->assertEquals($feedItem->getTitle(), 'Where to submit your RSS feeds …'); $this->assertEquals(trim($feedItem->getFullText()), '<p>Have a blog or other site that outputs an RSS feed? Want more exposure for your site or feed? Masternewmedia has compiled and regularly updates a list of websites where RSS feeds can be submitted. Each link has been tested and there is information on the website and how it works, as well as a direct link to the feed submission page.</p>' . PHP_EOL . '<p> <a href="http://rssblog.whatisrss.com/where-to-submit-your-rss-feeds/#more-6" class="more-link">(more…)</a></p>'); }