aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_author_name/SPtests/atom/0.3
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_author_name/SPtests/atom/0.3')
-rw-r--r--simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.0/creator.php21
-rw-r--r--simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.1/creator.php21
-rw-r--r--simplepie/test/first_item_author_name/SPtests/atom/0.3/feed.php24
-rw-r--r--simplepie/test/first_item_author_name/SPtests/atom/0.3/name.php23
4 files changed, 89 insertions, 0 deletions
diff --git a/simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.0/creator.php b/simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.0/creator.php
new file mode 100644
index 000000000..c095916ed
--- /dev/null
+++ b/simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.0/creator.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Author_Name_Test_Atom_03_DC_10_Creator extends SimplePie_First_Item_Author_Name_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: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/0.3/dc/1.1/creator.php b/simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.1/creator.php
new file mode 100644
index 000000000..d113d437d
--- /dev/null
+++ b/simplepie/test/first_item_author_name/SPtests/atom/0.3/dc/1.1/creator.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Author_Name_Test_Atom_03_DC_11_Creator extends SimplePie_First_Item_Author_Name_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: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/0.3/feed.php b/simplepie/test/first_item_author_name/SPtests/atom/0.3/feed.php
new file mode 100644
index 000000000..9227ed53a
--- /dev/null
+++ b/simplepie/test/first_item_author_name/SPtests/atom/0.3/feed.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Author_Name_Atom_03_Inheritance_Feed_Name extends SimplePie_First_Item_Author_Name_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <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/0.3/name.php b/simplepie/test/first_item_author_name/SPtests/atom/0.3/name.php
new file mode 100644
index 000000000..85b59cc8a
--- /dev/null
+++ b/simplepie/test/first_item_author_name/SPtests/atom/0.3/name.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Author_Name_Test_Atom_03_Name extends SimplePie_First_Item_Author_Name_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <entry>
+ <author>
+ <name>Item Author</name>
+ </author>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Author';
+ }
+}
+
+?> \ No newline at end of file