summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Strojny <lstrojny@php.net>2013-01-06 03:15:08 +0100
committerLars Strojny <lstrojny@php.net>2013-01-06 03:15:08 +0100
commit8e5460ad86d304e9046bee6d41c1d5c260f39f2d (patch)
treec9c0722002af70d317090f223ea27a3deaeb1469
parent67557fcfcea2c22e9b8d9f0ba86f461c02002cb7 (diff)
downloadphp-git-8e5460ad86d304e9046bee6d41c1d5c260f39f2d.tar.gz
Adding test from 5.5
-rw-r--r--ext/date/tests/date_default_timezone_get-4.phpt11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..6d1982bc13
--- /dev/null
+++ b/ext/date/tests/date_default_timezone_get-4.phpt
@@ -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