function test_feedSubtitle() { foreach ($this->files as $file) { $contents = file_get_contents($this->sample_dir . DIRECTORY_SEPARATOR . $file); $feed = new XML_Feed_Parser($contents); $entry = $feed->getEntryByOffset(0); $this->assertEquals($feed->subtitle, $feed->subtitle()); } }
function test_feed_subtitle_content_type_text_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_content_type_text.xml'); $feed = new XML_Feed_Parser($content); $this->assertEquals('text/plain', $feed->subtitle(0, 'type')); }