diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
commit | 9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch) | |
tree | 0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/feed_image_link | |
parent | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff) | |
download | volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2 volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip |
Add simplepie
Diffstat (limited to 'simplepie/test/feed_image_link')
6 files changed, 135 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php new file mode 100644 index 000000000..ddcc91408 --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_090_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/"> + <image> + <link>http://example.com/</link> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php new file mode 100644 index 000000000..0b7515ef4 --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_091_Netscape_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <image> + <link>http://example.com/</link> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php new file mode 100644 index 000000000..14827b59b --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_091_Userland_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <image> + <link>http://example.com/</link> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php new file mode 100644 index 000000000..3a59984a7 --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_092_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <image> + <link>http://example.com/</link> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php b/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php new file mode 100644 index 000000000..a30f6bc8e --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_10_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"> + <image> + <link>http://example.com/</link> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php b/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php new file mode 100644 index 000000000..75c8deb33 --- /dev/null +++ b/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Link_Test_RSS_20_Link extends SimplePie_Feed_Image_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <image> + <link>http://example.com/</link> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |