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_description/SPtests/rss | |
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_description/SPtests/rss')
42 files changed, 945 insertions, 0 deletions
diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/content.php new file mode 100644 index 000000000..e4a5a43f5 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/content.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_Atom_03_Content extends SimplePie_First_Item_Description_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#"> + <item> + <a:content>Item Description</a:content> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/summary.php new file mode 100644 index 000000000..b24991f12 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/0.3/summary.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_Atom_03_Summary extends SimplePie_First_Item_Description_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#"> + <item> + <a:summary>Item Description</a:summary> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/content.php new file mode 100644 index 000000000..2ed702431 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/content.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_Atom_10_Content extends SimplePie_First_Item_Description_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:content>Item Description</a:content> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/summary.php new file mode 100644 index 000000000..68a7dcc59 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/atom/1.0/summary.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_Atom_10_Summary extends SimplePie_First_Item_Description_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:summary>Item Description</a:summary> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.0/description.php new file mode 100644 index 000000000..dfdcd5722 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.0/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_DC_10_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.1/description.php new file mode 100644 index 000000000..53e050510 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/dc/1.1/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_DC_11_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.90/description.php b/simplepie/test/first_item_description/SPtests/rss/0.90/description.php new file mode 100644 index 000000000..2acaa7f0f --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.90/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_090_Description extends SimplePie_First_Item_Description_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/"> + <item> + <description>Item Description</description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = NULL; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/content.php new file mode 100644 index 000000000..f7fd15262 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/content.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_Atom_03_Content extends SimplePie_First_Item_Description_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> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/summary.php new file mode 100644 index 000000000..d839aa9e1 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/0.3/summary.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_Atom_03_Summary extends SimplePie_First_Item_Description_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> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/content.php new file mode 100644 index 000000000..f182dfc66 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/content.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_Atom_10_Content extends SimplePie_First_Item_Description_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:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/summary.php new file mode 100644 index 000000000..5e5f2a8a5 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/atom/1.0/summary.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_Atom_10_Summary extends SimplePie_First_Item_Description_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:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.0/description.php new file mode 100644 index 000000000..216cb39c0 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.0/description.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_DC_10_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.1/description.php new file mode 100644 index 000000000..e706be1ff --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/dc/1.1/description.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_DC_11_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/description.php new file mode 100644 index 000000000..8886ac35b --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-netscape/description.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Netscape_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <item> + <description>Item Description</description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/content.php new file mode 100644 index 000000000..0a0301887 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_Atom_03_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/summary.php new file mode 100644 index 000000000..a0a9e6f34 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/0.3/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_Atom_03_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/content.php new file mode 100644 index 000000000..c3eae044a --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_Atom_10_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/summary.php new file mode 100644 index 000000000..27b66ce70 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/atom/1.0/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_Atom_10_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.0/description.php new file mode 100644 index 000000000..d25e0cd61 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.0/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_DC_10_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.1/description.php new file mode 100644 index 000000000..8fb97cf71 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/dc/1.1/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_DC_11_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.91-userland/description.php b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/description.php new file mode 100644 index 000000000..f01c5ff5c --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.91-userland/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_091_Userland_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <item> + <description>Item Description</description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/content.php new file mode 100644 index 000000000..c906a96a7 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_Atom_03_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/summary.php new file mode 100644 index 000000000..da2a88f70 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/0.3/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_Atom_03_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/content.php new file mode 100644 index 000000000..d245f0037 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_Atom_10_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/summary.php new file mode 100644 index 000000000..9ea440e87 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/atom/1.0/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_Atom_10_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.0/description.php new file mode 100644 index 000000000..09a9f6027 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.0/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_DC_10_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.1/description.php new file mode 100644 index 000000000..56e1f8351 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/dc/1.1/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_DC_11_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/0.92/description.php b/simplepie/test/first_item_description/SPtests/rss/0.92/description.php new file mode 100644 index 000000000..76d7a0222 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/0.92/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_092_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <item> + <description>Item Description</description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/content.php new file mode 100644 index 000000000..e3f5cb7bf --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/content.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_Atom_03_Content extends SimplePie_First_Item_Description_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#"> + <item> + <a:content>Item Description</a:content> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/summary.php new file mode 100644 index 000000000..f920bc9a5 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/0.3/summary.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_Atom_03_Summary extends SimplePie_First_Item_Description_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#"> + <item> + <a:summary>Item Description</a:summary> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/content.php new file mode 100644 index 000000000..1a68571d4 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/content.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_Atom_10_Content extends SimplePie_First_Item_Description_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:content>Item Description</a:content> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/summary.php new file mode 100644 index 000000000..3e9190464 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/atom/1.0/summary.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_Atom_10_Summary extends SimplePie_First_Item_Description_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:summary>Item Description</a:summary> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.0/description.php new file mode 100644 index 000000000..187d4f11e --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.0/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_DC_10_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.1/description.php new file mode 100644 index 000000000..487cf5cc3 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/dc/1.1/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_DC_11_Description extends SimplePie_First_Item_Description_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:description>Item Description</dc:description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/1.0/description.php new file mode 100644 index 000000000..21ec6f0c5 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/1.0/description.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_10_Description extends SimplePie_First_Item_Description_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/"> + <item> + <description>Item Description</description> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/content.php b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/content.php new file mode 100644 index 000000000..29bf9f2c4 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_Atom_03_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/summary.php b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/summary.php new file mode 100644 index 000000000..f853e231a --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/0.3/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_Atom_03_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/content.php b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/content.php new file mode 100644 index 000000000..d712ece73 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/content.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_Atom_10_Content extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:content>Item Description</a:content> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/summary.php b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/summary.php new file mode 100644 index 000000000..ab0aa2d20 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/atom/1.0/summary.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_Atom_10_Summary extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:summary>Item Description</a:summary> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.0/description.php b/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.0/description.php new file mode 100644 index 000000000..19fa60a63 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.0/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_DC_10_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.1/description.php b/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.1/description.php new file mode 100644 index 000000000..08e5c1795 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/dc/1.1/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_DC_11_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <item> + <dc:description>Item Description</dc:description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_description/SPtests/rss/2.0/description.php b/simplepie/test/first_item_description/SPtests/rss/2.0/description.php new file mode 100644 index 000000000..d2b16bef2 --- /dev/null +++ b/simplepie/test/first_item_description/SPtests/rss/2.0/description.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Description_Test_RSS_20_Description extends SimplePie_First_Item_Description_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <description>Item Description</description> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Description'; + } +} + +?>
\ No newline at end of file |