function test_channel_webMaster_name_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_webMaster_name.xml'); $feed = new XML_Feed_Parser($content); $this->assertEquals('Example editor', $feed->publisher(0, 'name')); }
function test_itunes_channel_owner_name_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_owner_name.xml'); $feed = new XML_Feed_Parser($content, false, true); $this->assertEquals('Mark Pilgrim', $feed->publisher(0, 'name')); }