1--TEST--
2IntlTimeZone::getOffset(): basic test
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8    die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12$ams = IntlTimeZone::createTimeZone('Europe/Amsterdam');
13
14$date = strtotime("1 July 2012 +0000");
15
16var_dump($ams->getOffset($date *1000., true, $rawOffset, $dstOffset),
17    $rawOffset, $dstOffset);
18
19$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
20
21var_dump(intltz_get_offset($lsb, $date *1000., true, $rawOffset, $dstOffset),
22    $rawOffset, $dstOffset);
23
24?>
25--EXPECT--
26bool(true)
27int(3600000)
28int(3600000)
29bool(true)
30int(0)
31int(3600000)
31