diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
commit | 9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch) | |
tree | 0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/first_item_category_label/SPtests | |
parent | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff) | |
download | volse-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')
33 files changed, 733 insertions, 0 deletions
diff --git a/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.0/subject.php new file mode 100644 index 000000000..8f39d5f5c --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.0/subject.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_03_DC_10_Subject extends SimplePie_First_Item_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/"> + <entry> + <dc:subject>Item Category</dc:subject> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.1/subject.php new file mode 100644 index 000000000..72bcfe293 --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/0.3/dc/1.1/subject.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_03_DC_11_Subject extends SimplePie_First_Item_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/"> + <entry> + <dc:subject>Item Category</dc:subject> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.0/subject.php b/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.0/subject.php new file mode 100644 index 000000000..d72d6f9d5 --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.0/subject.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_10_DC_10_Subject extends SimplePie_First_Item_Category_Label_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <entry> + <dc:subject>Item Category</dc:subject> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.1/subject.php b/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.1/subject.php new file mode 100644 index 000000000..9850757a9 --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/1.0/dc/1.1/subject.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_10_DC_11_Subject extends SimplePie_First_Item_Category_Label_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <entry> + <dc:subject>Item Category</dc:subject> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/atom/1.0/label.php b/simplepie/test/first_item_category_label/SPtests/atom/1.0/label.php new file mode 100644 index 000000000..1f2eb256f --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/1.0/label.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_10_Category_Label extends SimplePie_First_Item_Category_Label_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <category label="Item Category"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/atom/1.0/term.php b/simplepie/test/first_item_category_label/SPtests/atom/1.0/term.php new file mode 100644 index 000000000..0689665ce --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/atom/1.0/term.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Atom_10_Category_Term extends SimplePie_First_Item_Category_Label_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <category term="Item Category"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Category'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_category_label/SPtests/bugs/21.0.php b/simplepie/test/first_item_category_label/SPtests/bugs/21.0.php new file mode 100644 index 000000000..774020471 --- /dev/null +++ b/simplepie/test/first_item_category_label/SPtests/bugs/21.0.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Category_Label_Test_Bug_21_Test_0 extends SimplePie_First_Item_Category_Label_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <category term="Example category"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Example category'; + } +} + +?>
\ No newline at end of file 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 |