aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_image_width/SPtests/rss/0.91-userland
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_image_width/SPtests/rss/0.91-userland')
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-userland/url-default.php23
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-userland/width.php23
4 files changed, 88 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/icon-default.php
new file mode 100644
index 000000000..351b8d831
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/logo-default.php
new file mode 100644
index 000000000..7b35b750a
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/url-default.php
new file mode 100644
index 000000000..49010e074
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/url-default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Userland extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <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.91-userland/width.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/width.php
new file mode 100644
index 000000000..84749ffd7
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-userland/width.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Width extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <channel>
+ <image>
+ <width>100</width>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file