]> granicus.if.org Git - php/commitdiff
Adding test from 5.5
authorLars Strojny <lstrojny@php.net>
Sun, 6 Jan 2013 02:15:08 +0000 (03:15 +0100)
committerLars Strojny <lstrojny@php.net>
Sun, 6 Jan 2013 02:15:08 +0000 (03:15 +0100)
ext/date/tests/date_default_timezone_get-4.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/date_default_timezone_get-4.phpt b/ext/date/tests/date_default_timezone_get-4.phpt
new file mode 100644 (file)
index 0000000..6d1982b
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+date_default_timezone_get() function [4]
+--INI--
+date.timezone=Incorrect/Zone
+--FILE--
+<?php
+       echo date_default_timezone_get(), "\n";
+?>
+--EXPECTF--
+Warning: date_default_timezone_get(): Invalid date.timezone value 'Incorrect/Zone', we selected the timezone 'UTC' for now. in %sdate_default_timezone_get-4.php on line %d
+UTC