aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_image_width/SPtests
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
commit9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch)
tree0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/feed_image_width/SPtests
parentf5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff)
downloadvolse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip
Add simplepie
Diffstat (limited to 'simplepie/test/feed_image_width/SPtests')
-rw-r--r--simplepie/test/feed_image_width/SPtests/atom/1.0/icon-default.php19
-rw-r--r--simplepie/test/feed_image_width/SPtests/atom/1.0/logo-default.php19
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.90/url-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php22
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php22
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/url-default.php24
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/width.php24
-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
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.92/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.92/url-default.php23
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/0.92/width.php23
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/1.0/url-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/2.0/url-default.php23
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/2.0/width.php23
24 files changed, 520 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_width/SPtests/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/atom/1.0/icon-default.php
new file mode 100644
index 000000000..e409a08f3
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/atom/1.0/icon-default.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_Atom_10_Icon_Default extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <icon>http://example.com/</icon>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = NULL;
+ }
+}
+
+?>
diff --git a/simplepie/test/feed_image_width/SPtests/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/atom/1.0/logo-default.php
new file mode 100644
index 000000000..36a63866f
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/atom/1.0/logo-default.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_Atom_10_Logo_Default extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <logo>http://example.com/</logo>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = NULL;
+ }
+}
+
+?>
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/icon-default.php
new file mode 100644
index 000000000..efa0f5ae1
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_090_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/logo-default.php
new file mode 100644
index 000000000..c9e93afcb
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.90/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_090_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.90/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.90/url-default.php
new file mode 100644
index 000000000..075fa6d6e
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.90/url-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_090 extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php
new file mode 100644
index 000000000..e60f59265
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php
new file mode 100644
index 000000000..7abbe210e
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/url-default.php
new file mode 100644
index 000000000..4849fcdfc
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/url-default.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape extends SimplePie_Feed_Image_Width_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 = 88.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/width.php b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/width.php
new file mode 100644
index 000000000..608147fda
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/0.91-netscape/width.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Width extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+ <channel>
+ <image>
+ <width>100</width>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file
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
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
diff --git a/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/icon-default.php
new file mode 100644
index 000000000..39571a476
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_10_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/logo-default.php
new file mode 100644
index 000000000..cdb34bd22
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/1.0/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_10_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/1.0/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/1.0/url-default.php
new file mode 100644
index 000000000..4ad0bf41e
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/1.0/url-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_10 extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/icon-default.php b/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/icon-default.php
new file mode 100644
index 000000000..152c32418
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_20_Atom_10_Icon extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/logo-default.php b/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/logo-default.php
new file mode 100644
index 000000000..112985a68
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/2.0/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_20_Atom_10_Logo extends SimplePie_Feed_Image_Width_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 = NULL;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_width/SPtests/rss/2.0/url-default.php b/simplepie/test/feed_image_width/SPtests/rss/2.0/url-default.php
new file mode 100644
index 000000000..bc9bf7da9
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/2.0/url-default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_20 extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <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/2.0/width.php b/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php
new file mode 100644
index 000000000..3572f9a8b
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_20_Width extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <width>100</width>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file