aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_title/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_title/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_title/SPtests')
-rw-r--r--simplepie/test/feed_title/SPtests/atom/0.3/dc/1.0/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/atom/0.3/dc/1.1/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/atom/0.3/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/atom/1.0/dc/1.0/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/atom/1.0/dc/1.1/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/atom/1.0/title.php19
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/16.0.php23
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/174.0.php20
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/18.0.php24
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/18.1.php24
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/20.0.php19
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/20.1.php19
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/20.2.php19
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/272.0.php19
-rw-r--r--simplepie/test/feed_title/SPtests/bugs/272.1.php19
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.90/atom/0.3/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.90/atom/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.90/dc/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.90/dc/1.1/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.90/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/0.3/title.php22
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/1.0/title.php22
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.0/title.php22
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.1/title.php22
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-netscape/title.php22
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/0.3/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.1/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.91-userland/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.92/atom/0.3/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.92/atom/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.92/dc/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.92/dc/1.1/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/0.92/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/1.0/atom/0.3/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/1.0/atom/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/1.0/dc/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/1.0/dc/1.1/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/2.0/atom/0.3/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/2.0/atom/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/2.0/dc/1.0/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/2.0/dc/1.1/title.php21
-rw-r--r--simplepie/test/feed_title/SPtests/rss/2.0/title.php21
45 files changed, 935 insertions, 0 deletions
diff --git a/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.0/title.php
new file mode 100644
index 000000000..ab0a13978
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.0/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_03_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <dc:title>Feed Title</dc:title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.1/title.php
new file mode 100644
index 000000000..20db9d9a1
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/0.3/dc/1.1/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_03_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <dc:title>Feed Title</dc:title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/atom/0.3/title.php
new file mode 100644
index 000000000..236afed1a
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/0.3/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_03_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <title>Feed Title</title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.0/title.php
new file mode 100644
index 000000000..c95b5e70c
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.0/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_10_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <dc:title>Feed Title</dc:title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.1/title.php
new file mode 100644
index 000000000..a67f90925
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/1.0/dc/1.1/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_10_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <dc:title>Feed Title</dc:title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/atom/1.0/title.php
new file mode 100644
index 000000000..bfbf2aeed
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/atom/1.0/title.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Atom_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>Feed Title</title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/16.0.php b/simplepie/test/feed_title/SPtests/bugs/16.0.php
new file mode 100644
index 000000000..ab92612ae
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/16.0.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_16_Test_0 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
+"http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+ <channel>
+ <title>Feed with DOCTYPE</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed with DOCTYPE';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/174.0.php b/simplepie/test/feed_title/SPtests/bugs/174.0.php
new file mode 100644
index 000000000..9625463b7
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/174.0.php
@@ -0,0 +1,20 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_174_Test_0 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<?xml version = "1.0" encoding = "UTF-8" ?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>Spaces in prolog</title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Spaces in prolog';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/18.0.php b/simplepie/test/feed_title/SPtests/bugs/18.0.php
new file mode 100644
index 000000000..5f63db252
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/18.0.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_18_Test_0 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>Channel title</title>
+ <image>
+ <title>Image title</title>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Channel title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/18.1.php b/simplepie/test/feed_title/SPtests/bugs/18.1.php
new file mode 100644
index 000000000..d51c3d3df
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/18.1.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_18_Test_1 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <title>Image title</title>
+ </image>
+ <title>Channel title</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Channel title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/20.0.php b/simplepie/test/feed_title/SPtests/bugs/20.0.php
new file mode 100644
index 000000000..4d1c394b5
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/20.0.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_20_Test_0 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<a:feed xmlns:a="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/1999/xhtml">
+ <a:title>Non-default namespace</a:title>
+</a:feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Non-default namespace';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/20.1.php b/simplepie/test/feed_title/SPtests/bugs/20.1.php
new file mode 100644
index 000000000..f46fc622b
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/20.1.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_20_Test_1 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<a:feed xmlns:a="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/1999/xhtml">
+ <a:title type="xhtml"><div>Non-default namespace</div></a:title>
+</a:feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Non-default namespace';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/20.2.php b/simplepie/test/feed_title/SPtests/bugs/20.2.php
new file mode 100644
index 000000000..ed7d75e42
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/20.2.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_20_Test_2 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:h="http://www.w3.org/1999/xhtml">
+ <title type="xhtml"><h:div>Non-default namespace</h:div></title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Non-default namespace';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/272.0.php b/simplepie/test/feed_title/SPtests/bugs/272.0.php
new file mode 100644
index 000000000..5bd731613
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/272.0.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_272_Test_0 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>Ampersand: <![CDATA[&]]></title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Ampersand: &amp;';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/bugs/272.1.php b/simplepie/test/feed_title/SPtests/bugs/272.1.php
new file mode 100644
index 000000000..5beda2ded
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/bugs/272.1.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Title_Test_Bug_272_Test_1 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <title><![CDATA[&]]>: Ampersand</title>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = '&amp;: Ampersand';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.90/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/0.90/atom/0.3/title.php
new file mode 100644
index 000000000..146f566f3
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.90/atom/0.3/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_090_Atom_03_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.90/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.90/atom/1.0/title.php
new file mode 100644
index 000000000..6e6ce9387
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.90/atom/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_090_Atom_10_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.0/title.php
new file mode 100644
index 000000000..e359b34db
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_090_DC_10_Title extends SimplePie_Feed_Title_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:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.1/title.php
new file mode 100644
index 000000000..a060e3c6f
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.90/dc/1.1/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_090_DC_11_Title extends SimplePie_Feed_Title_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:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.90/title.php b/simplepie/test/feed_title/SPtests/rss/0.90/title.php
new file mode 100644
index 000000000..cfde01d28
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.90/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_090_Title extends SimplePie_Feed_Title_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>
+ <title>Feed Title</title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/0.3/title.php
new file mode 100644
index 000000000..51e0ef749
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/0.3/title.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Netscape_Atom_03_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/1.0/title.php
new file mode 100644
index 000000000..2daf561f6
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/atom/1.0/title.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Netscape_Atom_10_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.0/title.php
new file mode 100644
index 000000000..c95fcd4d8
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.0/title.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Netscape_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.1/title.php
new file mode 100644
index 000000000..b5c9c5211
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/dc/1.1/title.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Netscape_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-netscape/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/title.php
new file mode 100644
index 000000000..928bbbe81
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-netscape/title.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Netscape_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+ <channel>
+ <title>Feed Title</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/0.3/title.php
new file mode 100644
index 000000000..b104820c0
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/0.3/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Userland_Atom_03_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/1.0/title.php
new file mode 100644
index 000000000..f109e13de
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-userland/atom/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Userland_Atom_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.0/title.php
new file mode 100644
index 000000000..2d6e60833
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Userland_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.1/title.php
new file mode 100644
index 000000000..6436bb446
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-userland/dc/1.1/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Userland_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.91-userland/title.php b/simplepie/test/feed_title/SPtests/rss/0.91-userland/title.php
new file mode 100644
index 000000000..5ce3b1d4e
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.91-userland/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_091_Userland_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91">
+ <channel>
+ <title>Feed Title</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.92/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/0.92/atom/0.3/title.php
new file mode 100644
index 000000000..48209c77b
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.92/atom/0.3/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_092_Atom_03_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.92/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.92/atom/1.0/title.php
new file mode 100644
index 000000000..7af135c4d
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.92/atom/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_092_Atom_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.0/title.php
new file mode 100644
index 000000000..dac1d51ef
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_092_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.1/title.php
new file mode 100644
index 000000000..48ad28654
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.92/dc/1.1/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_092_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/0.92/title.php b/simplepie/test/feed_title/SPtests/rss/0.92/title.php
new file mode 100644
index 000000000..fe948f0d3
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/0.92/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_092_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92">
+ <channel>
+ <title>Feed Title</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/1.0/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/1.0/atom/0.3/title.php
new file mode 100644
index 000000000..753863a24
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/1.0/atom/0.3/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_10_Atom_03_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/1.0/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/1.0/atom/1.0/title.php
new file mode 100644
index 000000000..8b8bfe95f
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/1.0/atom/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_10_Atom_10_Title extends SimplePie_Feed_Title_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:title>Feed Title</a:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.0/title.php
new file mode 100644
index 000000000..2239c10f6
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_10_DC_10_Title extends SimplePie_Feed_Title_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:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.1/title.php
new file mode 100644
index 000000000..d764d2715
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/1.0/dc/1.1/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_10_DC_11_Title extends SimplePie_Feed_Title_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:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/1.0/title.php
new file mode 100644
index 000000000..bcf55cf8a
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_10_Title extends SimplePie_Feed_Title_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>
+ <title>Feed Title</title>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/2.0/atom/0.3/title.php b/simplepie/test/feed_title/SPtests/rss/2.0/atom/0.3/title.php
new file mode 100644
index 000000000..deda0f1e7
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/2.0/atom/0.3/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_20_Atom_03_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/2.0/atom/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/2.0/atom/1.0/title.php
new file mode 100644
index 000000000..b71cfa2b9
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/2.0/atom/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_20_Atom_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:title>Feed Title</a:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.0/title.php b/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.0/title.php
new file mode 100644
index 000000000..e84fb0c8f
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_20_DC_10_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.1/title.php b/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.1/title.php
new file mode 100644
index 000000000..2a7dd59d8
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/2.0/dc/1.1/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_20_DC_11_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:title>Feed Title</dc:title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/SPtests/rss/2.0/title.php b/simplepie/test/feed_title/SPtests/rss/2.0/title.php
new file mode 100644
index 000000000..a2659932c
--- /dev/null
+++ b/simplepie/test/feed_title/SPtests/rss/2.0/title.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Title_Test_RSS_20_Title extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>Feed Title</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Title';
+ }
+}
+
+?> \ No newline at end of file