mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Add test ini_set with invalid time zone
Wasn't covered before according to gcov.php.net.
This commit is contained in:
committed by
Joe Watkins
parent
2c7909697a
commit
cc9893eb44
10
ext/date/tests/ini_set_incorrect.phpt
Normal file
10
ext/date/tests/ini_set_incorrect.phpt
Normal file
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
Test invalid time zone passed to ini_set
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
ini_set("date.timezone", "Incorrect/Zone");
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: ini_set(): Invalid date.timezone value 'Incorrect/Zone', we selected the timezone 'UTC' for now. in %sini_set_incorrect.php on line %d
|
||||
Reference in New Issue
Block a user