aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_link/SPtests/atom
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_link/SPtests/atom')
-rw-r--r--simplepie/test/feed_link/SPtests/atom/0.3/link.php19
-rw-r--r--simplepie/test/feed_link/SPtests/atom/0.3/link_@rel_alternate.php19
-rw-r--r--simplepie/test/feed_link/SPtests/atom/1.0/link.php19
-rw-r--r--simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_absolute_iri.php19
-rw-r--r--simplepie/test/feed_link/SPtests/atom/1.0/link_@rel_alternate.php19
5 files changed, 95 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