diff options
Diffstat (limited to 'simplepie/test/feed_image_width/SPtests/rss/0.92')
4 files changed, 88 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/icon-default.php new file mode 100644 index 000000000..ddbbb4e94 --- /dev/null +++ b/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/icon-default.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Width_Test_RSS_092_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/logo-default.php new file mode 100644 index 000000000..b30d364f3 --- /dev/null +++ b/simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/logo-default.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Image_Width_Test_RSS_092_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.92/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.92/url-default.php new file mode 100644 index 000000000..c0b17b562 --- /dev/null +++ b/simplepie/test/feed_image_width/SPtests/rss/0.92/url-default.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Width_Test_RSS_092 extends SimplePie_Feed_Image_Width_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <image> + <url>http://example.com/</url> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 88.0; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.92/width.php b/simplepie/test/feed_image_width/SPtests/rss/0.92/width.php new file mode 100644 index 000000000..6bf6f45d5 --- /dev/null +++ b/simplepie/test/feed_image_width/SPtests/rss/0.92/width.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_Feed_Image_Width_Test_RSS_092_Width extends SimplePie_Feed_Image_Width_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <image> + <width>100</width> + </image> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 100.0; + } +} + +?>
\ No newline at end of file |