diff options
Diffstat (limited to 'simplepie/test/first_item_description/SPtests/rss/0.90')
7 files changed, 147 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 |