aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_category_label/SPtests/rss
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/first_item_category_label/SPtests/rss
parentf5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff)
downloadvolse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip
Add simplepie
Diffstat (limited to 'simplepie/test/first_item_category_label/SPtests/rss')
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/label.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/term.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.0/subject.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.1/subject.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php24
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php24
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php24
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php24
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/label.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/term.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.92/category.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.0/subject.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.1/subject.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/label.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/term.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.0/subject.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.1/subject.php21
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/label.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/term.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/2.0/category.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.0/subject.php23
-rw-r--r--simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.1/subject.php23
26 files changed, 586 insertions, 0 deletions
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/label.php
new file mode 100644
index 000000000..4897dbdc5
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_090_Atom_10_Category_Label extends SimplePie_First_Item_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">
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/term.php
new file mode 100644
index 000000000..5cffbd7ea
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.90/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_090_Atom_10_Category_Term extends SimplePie_First_Item_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">
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.0/subject.php
new file mode 100644
index 000000000..ed415507a
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_090_DC_10_Subject extends SimplePie_First_Item_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/">
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.1/subject.php
new file mode 100644
index 000000000..6979f957f
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.90/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_090_DC_11_Subject extends SimplePie_First_Item_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/">
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php
new file mode 100644
index 000000000..cbd00ec02
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/label.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Netscape_Atom_10_Category_Label extends SimplePie_First_Item_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>
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php
new file mode 100644
index 000000000..d1c3522e2
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/atom/1.0/term.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Netscape_Atom_10_Category_Term extends SimplePie_First_Item_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>
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php
new file mode 100644
index 000000000..6a1a93e4e
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.0/subject.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Netscape_DC_10_Subject extends SimplePie_First_Item_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>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php
new file mode 100644
index 000000000..9cfb63341
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-netscape/dc/1.1/subject.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Netscape_DC_11_Subject extends SimplePie_First_Item_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>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php
new file mode 100644
index 000000000..bc9b9ed84
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/label.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Userland_Atom_10_Category_Label extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php
new file mode 100644
index 000000000..aacd5c852
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/atom/1.0/term.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Userland_Atom_10_Category_Term extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php
new file mode 100644
index 000000000..5dfb24697
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.0/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Userland_DC_10_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php
new file mode 100644
index 000000000..6f583b760
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.91-userland/dc/1.1/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_091_Userland_DC_11_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/label.php
new file mode 100644
index 000000000..9713aaae5
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/label.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_092_Atom_10_Category_Label extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/term.php
new file mode 100644
index 000000000..bc426d0da
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.92/atom/1.0/term.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_092_Atom_10_Category_Term extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.92/category.php b/simplepie/test/first_item_category_label/SPtests/rss/0.92/category.php
new file mode 100644
index 000000000..1ede84491
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.92/category.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_092_Category extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92">
+ <channel>
+ <item>
+ <category>Item Category</category>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.0/subject.php
new file mode 100644
index 000000000..28d099422
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.0/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_092_DC_10_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.1/subject.php
new file mode 100644
index 000000000..bf41df8ac
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/0.92/dc/1.1/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_092_DC_11_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/label.php
new file mode 100644
index 000000000..101ef3396
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/label.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_10_Atom_10_Category_Label extends SimplePie_First_Item_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">
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/term.php
new file mode 100644
index 000000000..fa57fb34e
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/1.0/atom/1.0/term.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_10_Atom_10_Category_Term extends SimplePie_First_Item_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">
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.0/subject.php
new file mode 100644
index 000000000..7e2d5c6fd
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.0/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_10_DC_10_Subject extends SimplePie_First_Item_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/">
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.1/subject.php
new file mode 100644
index 000000000..1839c18f0
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/1.0/dc/1.1/subject.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_10_DC_11_Subject extends SimplePie_First_Item_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/">
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+</rdf:RDF>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/label.php
new file mode 100644
index 000000000..41c2cd6c6
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/label.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_20_Atom_10_Category_Label extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category label="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/term.php
new file mode 100644
index 000000000..b257106e4
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/2.0/atom/1.0/term.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_20_Atom_10_Category_Term extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
+ <channel>
+ <item>
+ <a:category term="Item Category"/>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/2.0/category.php b/simplepie/test/first_item_category_label/SPtests/rss/2.0/category.php
new file mode 100644
index 000000000..c691b2395
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/2.0/category.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_20_Category extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <item>
+ <category>Item Category</category>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.0/subject.php
new file mode 100644
index 000000000..26f43606d
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.0/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_20_DC_10_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.1/subject.php
new file mode 100644
index 000000000..8c8ab3f59
--- /dev/null
+++ b/simplepie/test/first_item_category_label/SPtests/rss/2.0/dc/1.1/subject.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Category_Label_Test_RSS_20_DC_11_Subject extends SimplePie_First_Item_Category_Label_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <item>
+ <dc:subject>Item Category</dc:subject>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Category';
+ }
+}
+
+?> \ No newline at end of file