diff options
Diffstat (limited to 'simplepie/test/feed_link/SPtests/rss/2.0')
3 files changed, 63 insertions, 0 deletions
diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php new file mode 100644 index 000000000..5f9e76189 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Atom_03_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php new file mode 100644 index 000000000..cb7aeccdd --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Atom_10_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/link.php new file mode 100644 index 000000000..125c33bfc --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <link>http://example.com/</link> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |