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==DONE==
26--EXPECT--
27float(-12219292800000)
28bool(true)
29float(0)
30bool(true)
31float(1)
32==DONE==
32