aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_date/SPtests/atom
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_date/SPtests/atom')
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/0.3/created.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.0/date.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.1/date.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/0.3/issued.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/0.3/modified.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.0/date.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.1/date.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/1.0/published.php21
-rw-r--r--simplepie/test/first_item_date/SPtests/atom/1.0/updated.php21
9 files changed, 189 insertions, 0 deletions
diff --git a/simplepie/test/first_item_date/SPtests/atom/0.3/created.php b/simplepie/test/first_item_date/SPtests/atom/0.3/created.php
new file mode 100644
index 000000000..11536de7b
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/0.3/created.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_03_Created extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <entry>
+ <created>2007-01-11T16:00:00Z</created>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.0/date.php b/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.0/date.php
new file mode 100644
index 000000000..c0ef7e379
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.0/date.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_03_DC_10_Date extends SimplePie_First_Item_Date_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:date>2007-01-11T16:00:00Z</dc:date>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.1/date.php b/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.1/date.php
new file mode 100644
index 000000000..fe865c0b7
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/0.3/dc/1.1/date.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_03_DC_11_Date extends SimplePie_First_Item_Date_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:date>2007-01-11T16:00:00Z</dc:date>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/0.3/issued.php b/simplepie/test/first_item_date/SPtests/atom/0.3/issued.php
new file mode 100644
index 000000000..003c60f6d
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/0.3/issued.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_03_Issued extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <entry>
+ <issued>2007-01-11T16:00:00Z</issued>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/0.3/modified.php b/simplepie/test/first_item_date/SPtests/atom/0.3/modified.php
new file mode 100644
index 000000000..3d52614e7
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/0.3/modified.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_03_Modified extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+ <entry>
+ <modified>2007-01-11T16:00:00Z</modified>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.0/date.php b/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.0/date.php
new file mode 100644
index 000000000..ae950d342
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.0/date.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_10_DC_10_Date extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/">
+ <entry>
+ <dc:date>2007-01-11T16:00:00Z</dc:date>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.1/date.php b/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.1/date.php
new file mode 100644
index 000000000..12b2aff76
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/1.0/dc/1.1/date.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_10_DC_11_Date extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <entry>
+ <dc:date>2007-01-11T16:00:00Z</dc:date>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/1.0/published.php b/simplepie/test/first_item_date/SPtests/atom/1.0/published.php
new file mode 100644
index 000000000..2aa2311ee
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/1.0/published.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_10_Published extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <entry>
+ <published>2007-01-11T16:00:00Z</published>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_date/SPtests/atom/1.0/updated.php b/simplepie/test/first_item_date/SPtests/atom/1.0/updated.php
new file mode 100644
index 000000000..e94af475a
--- /dev/null
+++ b/simplepie/test/first_item_date/SPtests/atom/1.0/updated.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Date_Test_Atom_10_Updated extends SimplePie_First_Item_Date_Test
+{
+ function data()
+ {
+ $this->data =
+'<feed xmlns="http://www.w3.org/2005/Atom">
+ <entry>
+ <updated>2007-01-11T16:00:00Z</updated>
+ </entry>
+</feed>';
+ }
+
+ function expected()
+ {
+ $this->expected = 1168531200;
+ }
+}
+
+?> \ No newline at end of file