diff options
Diffstat (limited to 'simplepie/test/first_item_author_name/SPtests/atom/1.0')
5 files changed, 114 insertions, 0 deletions
diff --git a/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.0/creator.php b/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.0/creator.php new file mode 100644 index 000000000..46e152993 --- /dev/null +++ b/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.0/creator.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Author_Name_Test_Atom_10_DC_10_Creator extends SimplePie_First_Item_Author_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <entry> + <dc:creator>Item Author</dc:creator> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Author'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.1/creator.php b/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.1/creator.php new file mode 100644 index 000000000..ef57ca7d5 --- /dev/null +++ b/simplepie/test/first_item_author_name/SPtests/atom/1.0/dc/1.1/creator.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Author_Name_Test_Atom_10_DC_11_Creator extends SimplePie_First_Item_Author_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <entry> + <dc:creator>Item Author</dc:creator> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Author'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_author_name/SPtests/atom/1.0/feed.php b/simplepie/test/first_item_author_name/SPtests/atom/1.0/feed.php new file mode 100644 index 000000000..cc8507066 --- /dev/null +++ b/simplepie/test/first_item_author_name/SPtests/atom/1.0/feed.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Author_Name_Atom_10_Inheritance_Feed_Name extends SimplePie_First_Item_Author_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <author> + <name>Item Author</name> + </author> + <entry> + <title>Item Title</title> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Author'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_author_name/SPtests/atom/1.0/name.php b/simplepie/test/first_item_author_name/SPtests/atom/1.0/name.php new file mode 100644 index 000000000..6bdbee31e --- /dev/null +++ b/simplepie/test/first_item_author_name/SPtests/atom/1.0/name.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Author_Name_Test_Atom_10_Name extends SimplePie_First_Item_Author_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <author> + <name>Item Author</name> + </author> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Author'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_author_name/SPtests/atom/1.0/source.php b/simplepie/test/first_item_author_name/SPtests/atom/1.0/source.php new file mode 100644 index 000000000..34a59d7d5 --- /dev/null +++ b/simplepie/test/first_item_author_name/SPtests/atom/1.0/source.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Author_Name_Atom_10_Inheritance_Source_Name extends SimplePie_First_Item_Author_Name_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <source> + <author> + <name>Item Author</name> + </author> + </source> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'Item Author'; + } +} + +?>
\ No newline at end of file |