diff options
Diffstat (limited to 'simplepie/test/first_item_contributor_name')
14 files changed, 340 insertions, 0 deletions
diff --git a/simplepie/test/first_item_contributor_name/SPtests/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/atom/0.3/name.php new file mode 100644 index 000000000..5dc4380e1 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/atom/0.3/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#"> + <entry> + <contributor> + <name>Item Contributor</name> + </contributor> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/atom/1.0/name.php new file mode 100644 index 000000000..25185c514 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/atom/1.0/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <contributor> + <name>Item Contributor</name> + </contributor> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/0.3/name.php new file mode 100644 index 000000000..281edd065 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/0.3/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_090_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/1.0/name.php new file mode 100644 index 000000000..a03949c2c --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.90/atom/1.0/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_090_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/0.3/name.php new file mode 100644 index 000000000..58f3cc079 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/0.3/name.php @@ -0,0 +1,26 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_091_Netscape_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/1.0/name.php new file mode 100644 index 000000000..3cfc61c57 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-netscape/atom/1.0/name.php @@ -0,0 +1,26 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_091_Netscape_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/0.3/name.php new file mode 100644 index 000000000..18d9764ab --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/0.3/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_091_Userland_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/1.0/name.php new file mode 100644 index 000000000..4978f7c6e --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.91-userland/atom/1.0/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_091_Userland_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/0.3/name.php new file mode 100644 index 000000000..f1d4c6002 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/0.3/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_092_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/1.0/name.php new file mode 100644 index 000000000..0f3f7ed54 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/0.92/atom/1.0/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_092_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/0.3/name.php new file mode 100644 index 000000000..25386d641 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/0.3/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_10_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/1.0/name.php new file mode 100644 index 000000000..f925e1d0e --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/1.0/atom/1.0/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_10_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_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:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/0.3/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/0.3/name.php new file mode 100644 index 000000000..228307f11 --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/0.3/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_20_Atom_03_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/1.0/name.php b/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/1.0/name.php new file mode 100644 index 000000000..16a49e81f --- /dev/null +++ b/simplepie/test/first_item_contributor_name/SPtests/rss/2.0/atom/1.0/name.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Contributor_Name_Test_RSS_20_Atom_10_Name extends SimplePie_First_Item_Contributor_Name_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:contributor> + <a:name>Item Contributor</a:name> + </a:contributor> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'Item Contributor'; + } +} + +?>
\ No newline at end of file |