]> granicus.if.org Git - php/commitdiff
scottish time variation
authorZoe Slattery <zoe@php.net>
Tue, 28 Oct 2008 19:26:03 +0000 (19:26 +0000)
committerZoe Slattery <zoe@php.net>
Tue, 28 Oct 2008 19:26:03 +0000 (19:26 +0000)
ext/date/tests/strtotime_variation_scottish.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/strtotime_variation_scottish.phpt b/ext/date/tests/strtotime_variation_scottish.phpt
new file mode 100644 (file)
index 0000000..57ef734
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+Checking whisky time
+--INI--
+date.timezone="UTC"
+--FILE--
+<?php
+       var_dump(date('H:i:s', strtotime('back of 7')));
+       var_dump(date('H:i:s', strtotime('front of 7')));
+       var_dump(date('H:i:s', strtotime('back of 19')));
+       var_dump(date('H:i:s', strtotime('front of 19')));
+?>
+--EXPECTF--
+%string|unicode%(8) "07:15:00"
+%string|unicode%(8) "06:45:00"
+%string|unicode%(8) "19:15:00"
+%string|unicode%(8) "18:45:00"