1--TEST--
2IntlGregorianCalendar::get/setGregorianChange(): basic test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6    die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "nl");
11
12date_default_timezone_set('Europe/Amsterdam');
13
14$intlcal = new IntlGregorianCalendar();
15
16var_dump($intlcal->getGregorianChange());
17
18var_dump($intlcal->setGregorianChange(0));
19var_dump(intlgregcal_get_gregorian_change($intlcal));
20
21var_dump(intlgregcal_set_gregorian_change($intlcal, 1));
22var_dump($intlcal->getGregorianChange());
23
24?>
25--EXPECT--
26float(-12219292800000)
27bool(true)
28float(0)
29bool(true)
30float(1)
30