diff options
Diffstat (limited to 'simplepie/test/date/RFC3339')
-rw-r--r-- | simplepie/test/date/RFC3339/1.php | 16 | ||||
-rw-r--r-- | simplepie/test/date/RFC3339/2.php | 16 | ||||
-rw-r--r-- | simplepie/test/date/RFC3339/3.php | 16 | ||||
-rw-r--r-- | simplepie/test/date/RFC3339/README | 1 |
4 files changed, 49 insertions, 0 deletions
diff --git a/simplepie/test/date/RFC3339/1.php b/simplepie/test/date/RFC3339/1.php new file mode 100644 index 000000000..3ae32bcc6 --- /dev/null +++ b/simplepie/test/date/RFC3339/1.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC3339_1 extends SimplePie_Date_Test +{ + function data() + { + $this->data = '1985-04-12T23:20:50.52Z'; + } + + function expected() + { + $this->expected = 482196051; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/RFC3339/2.php b/simplepie/test/date/RFC3339/2.php new file mode 100644 index 000000000..682c48e9d --- /dev/null +++ b/simplepie/test/date/RFC3339/2.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC3339_2 extends SimplePie_Date_Test +{ + function data() + { + $this->data = '1996-12-19T16:39:57-08:00'; + } + + function expected() + { + $this->expected = 851042397; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/RFC3339/3.php b/simplepie/test/date/RFC3339/3.php new file mode 100644 index 000000000..241739a7a --- /dev/null +++ b/simplepie/test/date/RFC3339/3.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC3339_3 extends SimplePie_Date_Test +{ + function data() + { + $this->data = '1996-12-20T00:39:57Z'; + } + + function expected() + { + $this->expected = 851042397; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/RFC3339/README b/simplepie/test/date/RFC3339/README new file mode 100644 index 000000000..da6e9bd7b --- /dev/null +++ b/simplepie/test/date/RFC3339/README @@ -0,0 +1 @@ +The tests enclosed within come from RFC 3339 section 5.8
\ No newline at end of file |