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 | |
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')
58 files changed, 898 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 diff --git a/simplepie/test/date/SPtests/RFC2822/invalid/four_digit_year.php b/simplepie/test/date/SPtests/RFC2822/invalid/four_digit_year.php new file mode 100644 index 000000000..b0208821f --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/invalid/four_digit_year.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_Four_Digit_Year extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 1994 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/invalid/full_name_of_day.php b/simplepie/test/date/SPtests/RFC2822/invalid/full_name_of_day.php new file mode 100644 index 000000000..9874d526f --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/invalid/full_name_of_day.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_Full_Name_Of_Day extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Friday, 05 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/invalid/invalid_day.php b/simplepie/test/date/SPtests/RFC2822/invalid/invalid_day.php new file mode 100644 index 000000000..0af95f3b6 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/invalid/invalid_day.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_Invalid_Day extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Vendredi, 05 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/invalid/invalid_timezone.php b/simplepie/test/date/SPtests/RFC2822/invalid/invalid_timezone.php new file mode 100644 index 000000000..753633b3e --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/invalid/invalid_timezone.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_Invalid_Timezone extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 UTC'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/invalid/mismatch_name_of_day.php b/simplepie/test/date/SPtests/RFC2822/invalid/mismatch_name_of_day.php new file mode 100644 index 000000000..02054cdf6 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/invalid/mismatch_name_of_day.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_Mismatch_Name_Of_Day extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Mon, 05 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/1.php b/simplepie/test/date/SPtests/RFC2822/valid/1.php new file mode 100644 index 000000000..c8a65b628 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/1.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_1 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/10.php b/simplepie/test/date/SPtests/RFC2822/valid/10.php new file mode 100644 index 000000000..fbae6451d --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/10.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_10 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 06:15:30 MST'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/11.php b/simplepie/test/date/SPtests/RFC2822/valid/11.php new file mode 100644 index 000000000..635fe2a98 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/11.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_11 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 07:15:30 MDT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/12.php b/simplepie/test/date/SPtests/RFC2822/valid/12.php new file mode 100644 index 000000000..7afa82e59 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/12.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_12 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 05:15:30 PST'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/13.php b/simplepie/test/date/SPtests/RFC2822/valid/13.php new file mode 100644 index 000000000..dfdaa3466 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/13.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_13 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 06:15:30 PDT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/14.php b/simplepie/test/date/SPtests/RFC2822/valid/14.php new file mode 100644 index 000000000..f45b660af --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/14.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_14 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 A'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/15.php b/simplepie/test/date/SPtests/RFC2822/valid/15.php new file mode 100644 index 000000000..ecf32ebc6 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/15.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_15 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 B'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/16.php b/simplepie/test/date/SPtests/RFC2822/valid/16.php new file mode 100644 index 000000000..1defa0f56 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/16.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_16 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 C'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/17.php b/simplepie/test/date/SPtests/RFC2822/valid/17.php new file mode 100644 index 000000000..c14bc9e6e --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/17.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_17 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 D'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/18.php b/simplepie/test/date/SPtests/RFC2822/valid/18.php new file mode 100644 index 000000000..1ef501662 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/18.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_18 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 E'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/19.php b/simplepie/test/date/SPtests/RFC2822/valid/19.php new file mode 100644 index 000000000..4cd090909 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/19.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_19 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 F'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/2.php b/simplepie/test/date/SPtests/RFC2822/valid/2.php new file mode 100644 index 000000000..c9f76e202 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/2.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_2 extends SimplePie_Date_Test +{ + function data() + { + $this->data = '05 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/20.php b/simplepie/test/date/SPtests/RFC2822/valid/20.php new file mode 100644 index 000000000..b60f499dc --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/20.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_20 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 G'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/21.php b/simplepie/test/date/SPtests/RFC2822/valid/21.php new file mode 100644 index 000000000..c689c547d --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/21.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_21 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 H'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/22.php b/simplepie/test/date/SPtests/RFC2822/valid/22.php new file mode 100644 index 000000000..9dfb091b0 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/22.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_22 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 I'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/23.php b/simplepie/test/date/SPtests/RFC2822/valid/23.php new file mode 100644 index 000000000..7fb0c81c3 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/23.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_23 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 K'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/24.php b/simplepie/test/date/SPtests/RFC2822/valid/24.php new file mode 100644 index 000000000..a90fe568f --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/24.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_24 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 L'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/25.php b/simplepie/test/date/SPtests/RFC2822/valid/25.php new file mode 100644 index 000000000..525440d45 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/25.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_25 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 M'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/26.php b/simplepie/test/date/SPtests/RFC2822/valid/26.php new file mode 100644 index 000000000..95a6475f8 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/26.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_26 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 N'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/27.php b/simplepie/test/date/SPtests/RFC2822/valid/27.php new file mode 100644 index 000000000..d13d39164 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/27.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_27 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 O'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/28.php b/simplepie/test/date/SPtests/RFC2822/valid/28.php new file mode 100644 index 000000000..9ef9d6c92 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/28.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_28 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 P'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/29.php b/simplepie/test/date/SPtests/RFC2822/valid/29.php new file mode 100644 index 000000000..8ef58be10 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/29.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_29 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 Q'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/3.php b/simplepie/test/date/SPtests/RFC2822/valid/3.php new file mode 100644 index 000000000..fcb29201f --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/3.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_3 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 5 Nov 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/30.php b/simplepie/test/date/SPtests/RFC2822/valid/30.php new file mode 100644 index 000000000..d28f23cd0 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/30.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_30 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 R'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/31.php b/simplepie/test/date/SPtests/RFC2822/valid/31.php new file mode 100644 index 000000000..af1f5adcc --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/31.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_31 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 S'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/32.php b/simplepie/test/date/SPtests/RFC2822/valid/32.php new file mode 100644 index 000000000..da2067903 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/32.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_32 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 T'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/33.php b/simplepie/test/date/SPtests/RFC2822/valid/33.php new file mode 100644 index 000000000..1c92362d4 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/33.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_33 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 U'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/34.php b/simplepie/test/date/SPtests/RFC2822/valid/34.php new file mode 100644 index 000000000..cf3ecb343 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/34.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_34 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 V'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/35.php b/simplepie/test/date/SPtests/RFC2822/valid/35.php new file mode 100644 index 000000000..900401323 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/35.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_35 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 W'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/36.php b/simplepie/test/date/SPtests/RFC2822/valid/36.php new file mode 100644 index 000000000..2f9c015bc --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/36.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_36 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 X'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/37.php b/simplepie/test/date/SPtests/RFC2822/valid/37.php new file mode 100644 index 000000000..a50940682 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/37.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_37 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 Y'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/38.php b/simplepie/test/date/SPtests/RFC2822/valid/38.php new file mode 100644 index 000000000..fc8a1d80c --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/38.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_38 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 Z'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/39.php b/simplepie/test/date/SPtests/RFC2822/valid/39.php new file mode 100644 index 000000000..975a348d8 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/39.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_39 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 +0000'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/4.php b/simplepie/test/date/SPtests/RFC2822/valid/4.php new file mode 100644 index 000000000..c6767f83c --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/4.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_4 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15 GMT'; + } + + function expected() + { + $this->expected = 784041300; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/40.php b/simplepie/test/date/SPtests/RFC2822/valid/40.php new file mode 100644 index 000000000..78e5be9fb --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/40.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_40 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 -0000'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/41.php b/simplepie/test/date/SPtests/RFC2822/valid/41.php new file mode 100644 index 000000000..d5bdfe40b --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/41.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_41 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 14:15:30 +0100'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/42.php b/simplepie/test/date/SPtests/RFC2822/valid/42.php new file mode 100644 index 000000000..eeae5e18e --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/42.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_42 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 12:15:30 -0100'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/43.php b/simplepie/test/date/SPtests/RFC2822/valid/43.php new file mode 100644 index 000000000..f97a2f102 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/43.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_43 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri(day), 05 Nov(ember) 94 13:15:30 GMT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/44.php b/simplepie/test/date/SPtests/RFC2822/valid/44.php new file mode 100644 index 000000000..d12b919b0 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/44.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_44 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri(day), 05 Nov(ember) 94 13:15:30 A'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/5.php b/simplepie/test/date/SPtests/RFC2822/valid/5.php new file mode 100644 index 000000000..cbb13360c --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/5.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_5 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 13:15:30 UT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/6.php b/simplepie/test/date/SPtests/RFC2822/valid/6.php new file mode 100644 index 000000000..d89efb0eb --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/6.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_6 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 08:15:30 EST'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/7.php b/simplepie/test/date/SPtests/RFC2822/valid/7.php new file mode 100644 index 000000000..f6574c7c9 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/7.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_7 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 09:15:30 EDT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/8.php b/simplepie/test/date/SPtests/RFC2822/valid/8.php new file mode 100644 index 000000000..2b6a1afa1 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/8.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_8 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 07:15:30 CST'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/RFC2822/valid/9.php b/simplepie/test/date/SPtests/RFC2822/valid/9.php new file mode 100644 index 000000000..bfb5d37c8 --- /dev/null +++ b/simplepie/test/date/SPtests/RFC2822/valid/9.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_RFC2822_9 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'Fri, 05 Nov 94 08:15:30 CDT'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/bugs/157.0.php b/simplepie/test/date/SPtests/bugs/157.0.php new file mode 100644 index 000000000..e08a62bc3 --- /dev/null +++ b/simplepie/test/date/SPtests/bugs/157.0.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_Bug_157_Test_0 extends SimplePie_Date_Test +{ + function data() + { + $this->data = 'meep'; + } + + function expected() + { + $this->expected = false; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/date/SPtests/bugs/259.0.php b/simplepie/test/date/SPtests/bugs/259.0.php new file mode 100644 index 000000000..a50c7f35f --- /dev/null +++ b/simplepie/test/date/SPtests/bugs/259.0.php @@ -0,0 +1,16 @@ +<?php + +class SimplePie_Date_Test_Bug_259_Test_0 extends SimplePie_Date_Test +{ + function data() + { + $this->data = '1994-11-05T08:15:30-0500'; + } + + function expected() + { + $this->expected = 784041330; + } +} + +?>
\ No newline at end of file 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 |