1--TEST-- 2IntlCalendar::get() 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 12$intlcal = IntlCalendar::createInstance('UTC'); 13$intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 4); 14 15var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); 16var_dump(intlcal_get($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)); 17 18?> 19--EXPECT-- 20int(4) 21int(4) 21