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_url | |
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_url')
20 files changed, 427 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_url/SPtests/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/atom/1.0/icon.php new file mode 100644 index 000000000..c532ea072 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/atom/1.0/icon.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_Atom_10_Icon extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <icon>http://example.com/</icon> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/atom/1.0/logo.php new file mode 100644 index 000000000..bd557474f --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/atom/1.0/logo.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_Atom_10_Logo extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <logo>http://example.com/</logo> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/icon.php new file mode 100644 index 000000000..4dc802b95 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/icon.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_090_Atom_10_Icon extends SimplePie_Feed_Image_URL_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/logo.php new file mode 100644 index 000000000..d3a390c8a --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.90/atom/1.0/logo.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_090_Atom_10_Logo extends SimplePie_Feed_Image_URL_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.90/url.php b/simplepie/test/feed_image_url/SPtests/rss/0.90/url.php new file mode 100644 index 000000000..16c0615ae --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.90/url.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_090_URL extends SimplePie_Feed_Image_URL_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> + <url>http://example.com/</url> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/icon.php new file mode 100644 index 000000000..ded856a72 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/icon.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Netscape_Atom_10_Icon extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/logo.php new file mode 100644 index 000000000..1e4bdabb8 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/atom/1.0/logo.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Netscape_Atom_10_Logo extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/url.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/url.php new file mode 100644 index 000000000..2db6903e3 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-netscape/url.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Netscape_URL extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <image> + <url>http://example.com/</url> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/icon.php new file mode 100644 index 000000000..fc898fefe --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/icon.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Userland_Atom_10_Icon extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/logo.php new file mode 100644 index 000000000..c9134c60a --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/atom/1.0/logo.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Userland_Atom_10_Logo extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/url.php b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/url.php new file mode 100644 index 000000000..e6e19fc5a --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.91-userland/url.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_091_Userland_URL extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <image> + <url>http://example.com/</url> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/icon.php new file mode 100644 index 000000000..61e0a2fd5 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/icon.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_092_Atom_10_Icon extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/logo.php new file mode 100644 index 000000000..82cc9bc7a --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.92/atom/1.0/logo.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_092_Atom_10_Logo extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/0.92/url.php b/simplepie/test/feed_image_url/SPtests/rss/0.92/url.php new file mode 100644 index 000000000..a8aa09f79 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/0.92/url.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_092_URL extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <image> + <url>http://example.com/</url> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/icon.php new file mode 100644 index 000000000..18018b094 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/icon.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_10_Atom_10_Icon extends SimplePie_Feed_Image_URL_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/logo.php new file mode 100644 index 000000000..a66cbd8eb --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/1.0/atom/1.0/logo.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_10_Atom_10_Logo extends SimplePie_Feed_Image_URL_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/1.0/url.php b/simplepie/test/feed_image_url/SPtests/rss/1.0/url.php new file mode 100644 index 000000000..58ce1fdeb --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/1.0/url.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_10_URL extends SimplePie_Feed_Image_URL_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> + <url>http://example.com/</url> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/icon.php b/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/icon.php new file mode 100644 index 000000000..7393af860 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/icon.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_20_Atom_10_Icon extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:icon>http://example.com/</a:icon> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/logo.php b/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/logo.php new file mode 100644 index 000000000..775db3516 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/2.0/atom/1.0/logo.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_20_Atom_10_Logo extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:logo>http://example.com/</a:logo> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_url/SPtests/rss/2.0/url.php b/simplepie/test/feed_image_url/SPtests/rss/2.0/url.php new file mode 100644 index 000000000..b8301ef71 --- /dev/null +++ b/simplepie/test/feed_image_url/SPtests/rss/2.0/url.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_URL_Test_RSS_20_URL extends SimplePie_Feed_Image_URL_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <image> + <url>http://example.com/</url> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |