aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_image_link
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_image_link')
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/0.90/link.php21
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php24
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php23
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/0.92/link.php23
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/1.0/link.php21
-rw-r--r--simplepie/test/feed_image_link/SPtests/rss/2.0/link.php23
6 files changed, 135 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php
new file mode 100644
index 000000000..ddcc91408
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/0.90/link.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_090_Link extends SimplePie_Feed_Image_Link_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>
+ <link>http://example.com/</link>
+ </image>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php
new file mode 100644
index 000000000..0b7515ef4
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/0.91-netscape/link.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_091_Netscape_Link extends SimplePie_Feed_Image_Link_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+ <channel>
+ <image>
+ <link>http://example.com/</link>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php
new file mode 100644
index 000000000..14827b59b
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/0.91-userland/link.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_091_Userland_Link extends SimplePie_Feed_Image_Link_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <channel>
+ <image>
+ <link>http://example.com/</link>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php b/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php
new file mode 100644
index 000000000..3a59984a7
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/0.92/link.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_092_Link extends SimplePie_Feed_Image_Link_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92">
+ <channel>
+ <image>
+ <link>http://example.com/</link>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php b/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php
new file mode 100644
index 000000000..a30f6bc8e
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/1.0/link.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_10_Link extends SimplePie_Feed_Image_Link_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>
+ <link>http://example.com/</link>
+ </image>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php b/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php
new file mode 100644
index 000000000..75c8deb33
--- /dev/null
+++ b/simplepie/test/feed_image_link/SPtests/rss/2.0/link.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Link_Test_RSS_20_Link extends SimplePie_Feed_Image_Link_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <link>http://example.com/</link>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'http://example.com/';
+ }
+}
+
+?> \ No newline at end of file