diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
commit | 9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch) | |
tree | 0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/date/RFC3339 | |
parent | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff) | |
download | volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2 volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip |
Add simplepie
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 |