function test_channel_image_width_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_width.xml'); $feed = new XML_Feed_Parser($content); $this->assertEquals(80, $feed->image(0, 'width')); }
function test_itunes_channel_link_image_1() { $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_link_image.xml'); $feed = new XML_Feed_Parser($content, false, true); $this->assertEquals('http://example.com/logo.jpg', $feed->image(0, 'href')); }