aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/date/W3CDTF
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/date/W3CDTF')
-rw-r--r--simplepie/test/date/W3CDTF/1.php16
-rw-r--r--simplepie/test/date/W3CDTF/2.php16
-rw-r--r--simplepie/test/date/W3CDTF/README1
3 files changed, 33 insertions, 0 deletions
diff --git a/simplepie/test/date/W3CDTF/1.php b/simplepie/test/date/W3CDTF/1.php
new file mode 100644
index 000000000..d11a59f38
--- /dev/null
+++ b/simplepie/test/date/W3CDTF/1.php
@@ -0,0 +1,16 @@
+<?php
+
+class SimplePie_Date_Test_W3CDTF_1 extends SimplePie_Date_Test
+{
+ function data()
+ {
+ $this->data = '1994-11-05T08:15:30-05:00';
+ }
+
+ function expected()
+ {
+ $this->expected = 784041330;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/date/W3CDTF/2.php b/simplepie/test/date/W3CDTF/2.php
new file mode 100644
index 000000000..9904e2ba1
--- /dev/null
+++ b/simplepie/test/date/W3CDTF/2.php
@@ -0,0 +1,16 @@
+<?php
+
+class SimplePie_Date_Test_W3CDTF_2 extends SimplePie_Date_Test
+{
+ function data()
+ {
+ $this->data = '1994-11-05T13:15:30Z';
+ }
+
+ function expected()
+ {
+ $this->expected = 784041330;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/date/W3CDTF/README b/simplepie/test/date/W3CDTF/README
new file mode 100644
index 000000000..4ace48d48
--- /dev/null
+++ b/simplepie/test/date/W3CDTF/README
@@ -0,0 +1 @@
+The tests enclosed within come from the W3C Date and Time Formats note \ No newline at end of file