diff options
Diffstat (limited to 'simplepie/test/feed_link')
23 files changed, 476 insertions, 0 deletions
diff --git a/simplepie/test/feed_link/SPtests/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/atom/0.3/link.php new file mode 100644 index 000000000..9f69b5a43 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/atom/0.3/link.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Link_Test_Atom_03_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#"> + <link href="http://example.com/"/> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/atom/0.3/link_@rel_alternate.php b/simplepie/test/feed_link/SPtests/atom/0.3/link_@rel_alternate.php new file mode 100644 index 000000000..f4b5736e6 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/atom/0.3/link_@rel_alternate.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Link_Test_Atom_03_Link_Alternate extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#"> + <link href="http://example.com/" rel="alternate"/> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/atom/1.0/link.php new file mode 100644 index 000000000..7c528c9b5 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/atom/1.0/link.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Link_Test_Atom_10_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <link href="http://example.com/"/> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_absolute_iri.php b/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_absolute_iri.php new file mode 100644 index 000000000..c91cc0e16 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_absolute_iri.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Link_Test_Atom_10_Link_Absolute_IRI extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <link href="http://example.com/" rel="http://www.iana.org/assignments/relation/alternate"/> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_alternate.php b/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_alternate.php new file mode 100644 index 000000000..8e1ede100 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_alternate.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Link_Test_Atom_10_Link_Relative_IRI extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <link href="http://example.com/" rel="alternate"/> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.90/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/0.90/atom/0.3/link.php new file mode 100644 index 000000000..2f048b9f9 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.90/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_090_Atom_03_Link extends SimplePie_Feed_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/" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.90/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/0.90/atom/1.0/link.php new file mode 100644 index 000000000..47ed9d852 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.90/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_090_Atom_10_Link extends SimplePie_Feed_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.90/link.php b/simplepie/test/feed_link/SPtests/rss/0.90/link.php new file mode 100644 index 000000000..35088b517 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.90/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_090_Link extends SimplePie_Feed_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/"> + <channel> + <link>http://example.com/</link> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/0.3/link.php new file mode 100644 index 000000000..c50a8ed79 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/0.3/link.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Netscape_Atom_03_Link extends SimplePie_Feed_Link_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://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/1.0/link.php new file mode 100644 index 000000000..58ac9f486 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/atom/1.0/link.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Netscape_Atom_10_Link extends SimplePie_Feed_Link_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:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-netscape/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/link.php new file mode 100644 index 000000000..bebc3b2c1 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-netscape/link.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Netscape_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <link>http://example.com/</link> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/0.3/link.php new file mode 100644 index 000000000..737a1fb38 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Userland_Atom_03_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/1.0/link.php new file mode 100644 index 000000000..b168918b0 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-userland/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Userland_Atom_10_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.91-userland/link.php b/simplepie/test/feed_link/SPtests/rss/0.91-userland/link.php new file mode 100644 index 000000000..ce1709cbd --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.91-userland/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_091_Userland_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <link>http://example.com/</link> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.92/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/0.92/atom/0.3/link.php new file mode 100644 index 000000000..94bcd514f --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.92/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_092_Atom_03_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.92/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/0.92/atom/1.0/link.php new file mode 100644 index 000000000..ecfd94feb --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.92/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_092_Atom_10_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/0.92/link.php b/simplepie/test/feed_link/SPtests/rss/0.92/link.php new file mode 100644 index 000000000..10d3a675a --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/0.92/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_092_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <link>http://example.com/</link> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/1.0/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/1.0/atom/0.3/link.php new file mode 100644 index 000000000..f64c9f530 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/1.0/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_10_Atom_03_Link extends SimplePie_Feed_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/" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/1.0/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/1.0/atom/1.0/link.php new file mode 100644 index 000000000..9317d0037 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/1.0/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_10_Atom_10_Link extends SimplePie_Feed_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/" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/1.0/link.php new file mode 100644 index 000000000..fefa7a947 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_10_Link extends SimplePie_Feed_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/"> + <channel> + <link>http://example.com/</link> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php new file mode 100644 index 000000000..5f9e76189 --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/atom/0.3/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Atom_03_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php new file mode 100644 index 000000000..cb7aeccdd --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/atom/1.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Atom_10_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <a:link href="http://example.com/"/> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_link/SPtests/rss/2.0/link.php b/simplepie/test/feed_link/SPtests/rss/2.0/link.php new file mode 100644 index 000000000..125c33bfc --- /dev/null +++ b/simplepie/test/feed_link/SPtests/rss/2.0/link.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Link_Test_RSS_20_Link extends SimplePie_Feed_Link_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <link>http://example.com/</link> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |