Ejemplo n.º 1
0
 function test_feed_copyright_xml_base_inherit_4_1()
 {
     $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base_inherit_4.xml');
     $feed = new XML_Feed_Parser($content, true, true);
     $this->assertEquals('http://example.com/parent/', $feed->copyright(0, 'base'));
 }
Ejemplo n.º 2
0
 function test_feed_copyright_content_type_text_plain_1()
 {
     $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_type_text_plain.xml');
     $feed = new XML_Feed_Parser($content);
     $this->assertEquals('text/plain', $feed->copyright(0, 'type'));
 }
Ejemplo n.º 3
0
 function test_feed_copyright_xml_base_inherit_4_1()
 {
     $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_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->copyright(0, 'base'));
 }
Ejemplo n.º 4
0
 function test_feed_copyright_xml_lang_inherit_4_1()
 {
     $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_inherit_4.xml');
     $feed = new XML_Feed_Parser($content, false, true);
     $this->assertEquals('en', $feed->copyright(0, 'language'));
 }