function test_feed_info_xml_base_inherit_4_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit_4.xml'); $feed = new XML_Feed_Parser($content, true, true); $this->assertEquals('http://example.com/parent/', $feed->info(0, 'base')); }
function test_feed_info_content_type_text_plain_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_type_text_plain.xml'); $feed = new XML_Feed_Parser($content); $this->assertEquals('text/plain', $feed->info(0, 'type')); }
function test_feed_info_xml_base_inherit_4_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit_4.xml'); try { $feed = new XML_Feed_Parser($content); } catch (XML_Feed_Parser_Exception $e) { $this->assertTrue(false); return; } $this->assertEquals('http://example.com/parent/', $feed->info(0, 'base')); }
function test_feed_info_xml_lang_inherit_4_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_inherit_4.xml'); $feed = new XML_Feed_Parser($content, false, true); $this->assertEquals('en', $feed->info(0, 'language')); }