diff options
Diffstat (limited to 'simplepie/test/feed_image_title')
18 files changed, 405 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.0/title.php new file mode 100644 index 000000000..cbcde3e40 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.0/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_090_DC_10_Title extends SimplePie_Feed_Image_Title_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:dc="http://purl.org/dc/elements/1.0/"> + <image> + <dc:title>Image Title</dc:title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.1/title.php new file mode 100644 index 000000000..314a3e9bb --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.90/dc/1.1/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_090_DC_11_Title extends SimplePie_Feed_Image_Title_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:dc="http://purl.org/dc/elements/1.1/"> + <image> + <dc:title>Image Title</dc:title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.90/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.90/title.php new file mode 100644 index 000000000..c7c54124e --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.90/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_090_Title extends SimplePie_Feed_Image_Title_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> + <title>Image Title</title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.0/title.php new file mode 100644 index 000000000..d355feb01 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.0/title.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Netscape_DC_10_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.1/title.php new file mode 100644 index 000000000..d79d83653 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/dc/1.1/title.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Netscape_DC_11_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/title.php new file mode 100644 index 000000000..6a380a9b0 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-netscape/title.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Netscape_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <image> + <title>Image Title</title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.0/title.php new file mode 100644 index 000000000..243b7436a --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.0/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Userland_DC_10_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.1/title.php new file mode 100644 index 000000000..356cba89e --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/dc/1.1/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Userland_DC_11_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/title.php new file mode 100644 index 000000000..4e989d085 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.91-userland/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_091_Userland_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <image> + <title>Image Title</title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.0/title.php new file mode 100644 index 000000000..4f57e5167 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.0/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_092_DC_10_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.1/title.php new file mode 100644 index 000000000..61c2e5c05 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.92/dc/1.1/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_092_DC_11_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/0.92/title.php b/simplepie/test/feed_image_title/SPtests/rss/0.92/title.php new file mode 100644 index 000000000..505168984 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/0.92/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_092_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <image> + <title>Image Title</title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.0/title.php new file mode 100644 index 000000000..bdebd712e --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.0/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_10_DC_10_Title extends SimplePie_Feed_Image_Title_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:dc="http://purl.org/dc/elements/1.0/"> + <image> + <dc:title>Image Title</dc:title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.1/title.php new file mode 100644 index 000000000..1333d4961 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/1.0/dc/1.1/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_10_DC_11_Title extends SimplePie_Feed_Image_Title_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:dc="http://purl.org/dc/elements/1.1/"> + <image> + <dc:title>Image Title</dc:title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/1.0/title.php new file mode 100644 index 000000000..a0f167e76 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/1.0/title.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_10_Title extends SimplePie_Feed_Image_Title_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> + <title>Image Title</title> + </image> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.0/title.php new file mode 100644 index 000000000..23d39e652 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.0/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_20_DC_10_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.1/title.php b/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.1/title.php new file mode 100644 index 000000000..0f34fbcba --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/2.0/dc/1.1/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_20_DC_11_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <image> + <dc:title>Image Title</dc:title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_title/SPtests/rss/2.0/title.php b/simplepie/test/feed_image_title/SPtests/rss/2.0/title.php new file mode 100644 index 000000000..1eef83666 --- /dev/null +++ b/simplepie/test/feed_image_title/SPtests/rss/2.0/title.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Title_Test_RSS_20_Title extends SimplePie_Feed_Image_Title_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <image> + <title>Image Title</title> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Image Title'; + } +} + +?>
\ No newline at end of file |