aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_category_label
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_category_label')
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.0/subject.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.1/subject.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.0/subject.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.1/subject.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/1.0/label.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/atom/1.0/term.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/bugs/21.0.php19
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/label.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/term.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.0/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.1/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php22
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php22
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php22
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php22
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/label.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/term.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.0/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.1/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/label.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/term.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.0/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.1/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/label.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/term.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/2.0/category.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.0/subject.php21
-rw-r--r--simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.1/subject.php21
32 files changed, 662 insertions, 0 deletions
diff --git a/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.0/subject.php
new file mode 100644
index 000000000..735222265
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.0/subject.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_03_DC_10_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.1/subject.php
new file mode 100644
index 000000000..81c0fc3d5
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/0.3/dc/1.1/subject.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_03_DC_11_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.0/subject.php
new file mode 100644
index 000000000..ffe2eb68d
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.0/subject.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_10_DC_10_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <dc:subject>Feed Category</dc:subject>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.1/subject.php
new file mode 100644
index 000000000..89fd41849
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/1.0/dc/1.1/subject.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_10_DC_11_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <dc:subject>Feed Category</dc:subject>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/atom/1.0/label.php
new file mode 100644
index 000000000..eacf3706f
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/1.0/label.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <category label="Feed Category"/>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/atom/1.0/term.php
new file mode 100644
index 000000000..d387f69d4
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/atom/1.0/term.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <category term="Feed Category"/>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/bugs/21.0.php b/simplepie/test/feed_category_label/SPtests/bugs/21.0.php
new file mode 100644
index 000000000..1091385d4
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/bugs/21.0.php
@@ -0,0 +1,19 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_Bug_21_Test_0 extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <category term="Example category"/>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Example category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/label.php
new file mode 100644
index 000000000..2b91b3916
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_090_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_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:category label="Feed Category"/>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/term.php
new file mode 100644
index 000000000..cc797910c
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.90/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_090_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_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:category term="Feed Category"/>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.0/subject.php
new file mode 100644
index 000000000..92b50d29e
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_090_DC_10_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.1/subject.php
new file mode 100644
index 000000000..e75f4b8bc
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.90/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_090_DC_11_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php
new file mode 100644
index 000000000..0570fa8b7
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Netscape_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_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:category label="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php
new file mode 100644
index 000000000..51ce0f0dd
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Netscape_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_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:category term="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php
new file mode 100644
index 000000000..dde6bea49
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Netscape_DC_10_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php
new file mode 100644
index 000000000..6678e1dd6
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Netscape_DC_11_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php
new file mode 100644
index 000000000..e144ba952
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Userland_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category label="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php
new file mode 100644
index 000000000..034502990
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Userland_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category term="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php
new file mode 100644
index 000000000..30be08cb1
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Userland_DC_10_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php
new file mode 100644
index 000000000..2f3e7b9ce
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_091_Userland_DC_11_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/label.php
new file mode 100644
index 000000000..38af20b99
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_092_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category label="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/term.php
new file mode 100644
index 000000000..2539a6d7b
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.92/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_092_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category term="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.0/subject.php
new file mode 100644
index 000000000..0decfee44
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_092_DC_10_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.1/subject.php
new file mode 100644
index 000000000..1108b4fa8
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/0.92/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_092_DC_11_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/label.php
new file mode 100644
index 000000000..6c171bd03
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_10_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_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:category label="Feed Category"/>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/term.php
new file mode 100644
index 000000000..78923a5e6
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/1.0/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_10_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_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:category term="Feed Category"/>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.0/subject.php
new file mode 100644
index 000000000..169e56027
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_10_DC_10_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.1/subject.php
new file mode 100644
index 000000000..845b8d6c9
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/1.0/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_10_DC_11_Subject extends SimplePie_Feed_Category_Label_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:subject>Feed Category</dc:subject>
+ </channel>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/label.php b/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/label.php
new file mode 100644
index 000000000..24b8d6555
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_20_Atom_10_Category_Label extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category label="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/term.php b/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/term.php
new file mode 100644
index 000000000..99e166c73
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/2.0/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_20_Atom_10_Category_Term extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <a:category term="Feed Category"/>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/2.0/category.php b/simplepie/test/feed_category_label/SPtests/rss/2.0/category.php
new file mode 100644
index 000000000..5bd28af3a
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/2.0/category.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_20_Category extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <category>Feed Category</category>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.0/subject.php b/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.0/subject.php
new file mode 100644
index 000000000..b13e9f5cb
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_20_DC_10_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.1/subject.php b/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.1/subject.php
new file mode 100644
index 000000000..edaee1a07
--- /dev/null
+++ b/simplepie/test/feed_category_label/SPtests/rss/2.0/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_Feed_Category_Label_Test_RSS_20_DC_11_Subject extends SimplePie_Feed_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <dc:subject>Feed Category</dc:subject>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Feed Category';
+ }
+}
+
+?> \ No newline at end of file