aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_image_height/SPtests/rss
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_image_height/SPtests/rss')
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.90/url-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php22
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php22
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/height.php24
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/url-default.php24
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-userland/height.php23
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.91-userland/url-default.php23
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.92/height.php23
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/0.92/url-default.php23
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/1.0/url-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/icon-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/logo-default.php21
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/2.0/height.php23
-rw-r--r--simplepie/test/feed_image_height/SPtests/rss/2.0/url-default.php23
22 files changed, 482 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/icon-default.php
new file mode 100644
index 000000000..c8251bebf
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_090_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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;
+ }
+}
+
+?>
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/logo-default.php
new file mode 100644
index 000000000..207f9d9f2
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.90/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_090_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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;
+ }
+}
+
+?>
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.90/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.90/url-default.php
new file mode 100644
index 000000000..f267b8430
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.90/url-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_090_URL_Default extends SimplePie_Feed_Image_Height_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;
+ }
+}
+
+?>
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php
new file mode 100644
index 000000000..842b9fd54
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/icon-default.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Netscape_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php
new file mode 100644
index 000000000..73a878c9a
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/atom/1.0/logo-default.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Netscape_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.91-netscape/height.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/height.php
new file mode 100644
index 000000000..7e3cbe8a1
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/height.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Netscape_Height extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+ <channel>
+ <image>
+ <height>100</height>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/url-default.php
new file mode 100644
index 000000000..43fea9a40
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-netscape/url-default.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Netscape_URL_Default extends SimplePie_Feed_Image_Height_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 = 31.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/icon-default.php
new file mode 100644
index 000000000..7e0222c09
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Userland_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.91-userland/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/logo-default.php
new file mode 100644
index 000000000..8e3f16024
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Userland_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.91-userland/height.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/height.php
new file mode 100644
index 000000000..5b7ba7311
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/height.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Userland_Height extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <channel>
+ <image>
+ <height>100</height>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/url-default.php
new file mode 100644
index 000000000..4eafec9d4
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.91-userland/url-default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_091_Userland_URL_Default extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <channel>
+ <image>
+ <url>http://example.com/</url>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 31.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/icon-default.php
new file mode 100644
index 000000000..f1a4d70b4
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_092_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.92/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/logo-default.php
new file mode 100644
index 000000000..c4e27f3da
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.92/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_092_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/0.92/height.php b/simplepie/test/feed_image_height/SPtests/rss/0.92/height.php
new file mode 100644
index 000000000..fc284167c
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.92/height.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_092_Height extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92">
+ <channel>
+ <image>
+ <height>100</height>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/0.92/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/0.92/url-default.php
new file mode 100644
index 000000000..97dbd1169
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/0.92/url-default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_092_URL_Default extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92">
+ <channel>
+ <image>
+ <url>http://example.com/</url>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 31.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/icon-default.php
new file mode 100644
index 000000000..0db522702
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_10_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/1.0/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/logo-default.php
new file mode 100644
index 000000000..41f76403c
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/1.0/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_10_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/1.0/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/1.0/url-default.php
new file mode 100644
index 000000000..f96878c68
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/1.0/url-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_10_URL_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/2.0/atom/1.0/icon-default.php b/simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/icon-default.php
new file mode 100644
index 000000000..71cd42c23
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/icon-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_20_Atom_10_Icon_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/2.0/atom/1.0/logo-default.php b/simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/logo-default.php
new file mode 100644
index 000000000..77a9514de
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/2.0/atom/1.0/logo-default.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_20_Atom_10_Logo_Default extends SimplePie_Feed_Image_Height_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_height/SPtests/rss/2.0/height.php b/simplepie/test/feed_image_height/SPtests/rss/2.0/height.php
new file mode 100644
index 000000000..02d80e871
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/2.0/height.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_20_Height extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <height>100</height>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_height/SPtests/rss/2.0/url-default.php b/simplepie/test/feed_image_height/SPtests/rss/2.0/url-default.php
new file mode 100644
index 000000000..e603375cc
--- /dev/null
+++ b/simplepie/test/feed_image_height/SPtests/rss/2.0/url-default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Height_Test_RSS_20_URL_Default extends SimplePie_Feed_Image_Height_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <url>http://example.com/</url>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 31.0;
+ }
+}
+
+?> \ No newline at end of file