1--TEST--
2Test timezone_offset_get() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing timezone_offset_get() : basic functionality ***\n";
6
7//Set the default time zone
8date_default_timezone_set("GMT");
9
10$tz = timezone_open("Europe/London");
11$date = date_create("GMT");
12
13var_dump(timezone_offset_get($tz, $date));
14
15$tz = timezone_open("America/New_York");
16var_dump(timezone_offset_get($tz, $date));
17
18$tz = timezone_open("America/Los_Angeles");
19var_dump(timezone_offset_get($tz, $date));
20
21?>
22--EXPECTF--
23*** Testing timezone_offset_get() : basic functionality ***
24%rint\(0\)|int\(3600\)%r
25%rint\(-18000\)|int\(-14400\)%r
26%rint\(-28800\)|int\(-25200\)%r
27