Skip to content

Commit cc9893e

Browse files
kelunikkrakjoe
authored andcommitted
Add test ini_set with invalid time zone
Wasn't covered before according to gcov.php.net.
1 parent 2c79096 commit cc9893e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/date/tests/ini_set_incorrect.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
Test invalid time zone passed to ini_set
3+
--FILE--
4+
<?php
5+
6+
ini_set("date.timezone", "Incorrect/Zone");
7+
8+
?>
9+
--EXPECTF--
10+
Warning: ini_set(): Invalid date.timezone value 'Incorrect/Zone', we selected the timezone 'UTC' for now. in %sini_set_incorrect.php on line %d

0 commit comments

Comments
 (0)