/PHP-7.0/ext/intl/tests/ |
H A D | calendar_get_setSkippedWallTimeOption_basic.phpt | 2 IntlCalendar::get/setSkippedWallTimeOption(): basic test 20 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 21 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 24 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), 25 $intlcal->get(IntlCalendar::FIELD_MINUTE) 31 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 34 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), 35 $intlcal->get(IntlCalendar::FIELD_MINUTE) 41 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 44 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), [all …]
|
H A D | calendar_clear_basic.phpt | 2 IntlCalendar::clear() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 15 $intlcal->get(IntlCalendar::FIELD_YEAR), 16 $intlcal->get(IntlCalendar::FIELD_MONTH), 17 $intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH), 18 $intlcal->get(IntlCalendar::FIELD_HOUR), 19 $intlcal->get(IntlCalendar::FIELD_MINUTE), 20 $intlcal->get(IntlCalendar::FIELD_SECOND), 21 $intlcal->get(IntlCalendar::FIELD_MILLISECOND) 24 $intlcal2 = IntlCalendar::createInstance('Europe/Amsterdam');
|
H A D | calendar_get_getActualMaximum_Minumum_error.phpt | 2 IntlCalendar::get/getActualMaximum/getActualMinimum(): bad arguments 32 Warning: IntlCalendar::get() expects exactly 1 parameter, 0 given in %s on line %d 34 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d 37 Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 0 given in %s on line %d 42 Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 0 given in %s on line %d 47 Warning: IntlCalendar::get(): intlcal_get: invalid field in %s on line %d 56 Warning: IntlCalendar::get() expects parameter 1 to be integer, string given in %s on line %d 58 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d 71 Warning: IntlCalendar::get() expects exactly 1 parameter, 2 given in %s on line %d 73 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d [all …]
|
H A D | calendar_getXMaximum_basic.phpt | 2 IntlCalendar::getMaximum(), ::getActualMaximum(), ::getLeastMaximum() basic test 14 $intlcal = IntlCalendar::createInstance('UTC'); 17 $intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 18 intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 19 $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 20 intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 21 $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 22 intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
|
H A D | calendar_getXMinimum_basic.phpt | 2 IntlCalendar::getMinimum(), ::getActualMinimum(), ::getGreatestMinimum() basic test 14 $intlcal = IntlCalendar::createInstance('UTC'); 17 $intlcal->getGreatestMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 18 intlcal_get_greatest_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 19 $intlcal->getActualMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 20 intlcal_get_actual_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 21 $intlcal->getMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 22 intlcal_get_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
|
H A D | calendar_fromDateTime_error.phpt | 2 IntlCalendar::fromDateTime(): errors 13 var_dump(IntlCalendar::fromDateTime()); 14 var_dump(IntlCalendar::fromDateTime(0,1,2)); 17 IntlCalendar::fromDateTime("foobar"); 25 var_dump(IntlCalendar::fromDateTime(new A)); 28 var_dump(IntlCalendar::fromDateTime($date)); 31 var_dump(IntlCalendar::fromDateTime($date)); 37 Warning: IntlCalendar::fromDateTime() expects at least 1 parameter, 0 given in %s on line %d 39 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: bad arguments in %s on line %d 42 Warning: IntlCalendar::fromDateTime() expects at most 2 parameters, 3 given in %s on line %d [all …]
|
H A D | calendar_isSet_basic.phpt | 2 IntlCalendar::isSet() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 13 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE)); 14 $intlcal->clear(IntlCalendar::FIELD_MINUTE); 15 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE)); 16 $intlcal->set(IntlCalendar::FIELD_MINUTE, 0); 17 var_dump(intlcal_is_set($intlcal, IntlCalendar::FIELD_MINUTE));
|
H A D | calendar_getDayOfWeekType_basic2.phpt | 2 IntlCalendar::getDayOfWeekType() basic test 16 $intlcal = IntlCalendar::createInstance('UTC'); 19 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY), 20 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY), 21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY), 22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY), 23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
|
H A D | calendar_getDayOfWeekType_basic.phpt | 2 IntlCalendar::getDayOfWeekType() basic test 16 $intlcal = IntlCalendar::createInstance('UTC'); 19 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY), 20 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY), 21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY), 22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY), 23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
|
H A D | calendar_roll_basic.phpt | 2 IntlCalendar::roll() basic test 15 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 16 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 17 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1 20 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 21 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 22 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1
|
H A D | calendar_roll_variation1.phpt | 2 IntlCalendar::roll() bool argument variation 15 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, true)); 16 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 17 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //29 19 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, false)); 20 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 21 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //28
|
H A D | calendar_setSkipped_RepeatedWallTimeOption_error.phpt | 2 IntlCalendar::setSkipped/RepeatedWallTimeOption(): bad arguments 36 Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 0 given in %s on lin… 38 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume… 41 Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 0 given in %s on li… 43 Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: bad argu… 46 Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 2 given in %s on lin… 48 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume… 51 Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 2 given in %s on li… 56 Warning: IntlCalendar::setSkippedWallTimeOption() expects parameter 1 to be integer, array given in… 58 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume… [all …]
|
H A D | calendar_set_basic.phpt | 2 IntlCalendar::set() basic test 14 $intlcal = IntlCalendar::createInstance(); 15 var_dump($intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 16 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); 17 var_dump(intlcal_set($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 3)); 18 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
|
H A D | calendar_add_basic.phpt | 2 IntlCalendar::add() basic test 17 $intlcal = IntlCalendar::createInstance('UTC'); 19 $intlcal->add(IntlCalendar::FIELD_DAY_OF_MONTH, 1); 20 $intlcal->add(IntlCalendar::FIELD_HOUR, 5); 21 $intlcal->add(IntlCalendar::FIELD_MINUTE, 6); 22 intlcal_add($intlcal, IntlCalendar::FIELD_SECOND, 7);
|
H A D | calendar_get_setRepeatedWallTimeOption_basic.phpt | 2 IntlCalendar::get/setRepeatedWallTimeOption(): basic test 19 var_dump($intlcal->setRepeatedWallTimeOption(IntlCalendar::WALLTIME_LAST)); 21 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 22 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 28 var_dump(intlcal_set_repeated_wall_time_option($intlcal, IntlCalendar::WALLTIME_FIRST)); 30 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 31 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
|
H A D | calendar_get_Least_Greatest_Minimum_Maximum_error.phpt | 2 IntlCalendar::get/Least/Greatest/Minimum/Maximum(): bad arguments 58 Warning: IntlCalendar::getLeastMaximum() expects exactly 1 parameter, 0 given in %s on line %d 60 Warning: IntlCalendar::getLeastMaximum(): intlcal_get_least_maximum: bad arguments in %s on line %d 63 Warning: IntlCalendar::getMaximum() expects exactly 1 parameter, 0 given in %s on line %d 65 Warning: IntlCalendar::getMaximum(): intlcal_get_maximum: bad arguments in %s on line %d 68 Warning: IntlCalendar::getGreatestMinimum() expects exactly 1 parameter, 0 given in %s on line %d 73 Warning: IntlCalendar::getMinimum() expects exactly 1 parameter, 0 given in %s on line %d 75 Warning: IntlCalendar::getMinimum(): intlcal_get_minimum: bad arguments in %s on line %d 78 Warning: IntlCalendar::getLeastMaximum(): intlcal_get_least_maximum: invalid field in %s on line %d 81 Warning: IntlCalendar::getMaximum(): intlcal_get_maximum: invalid field in %s on line %d [all …]
|
H A D | calendar_before_after_error.phpt | 2 IntlCalendar::before()/after(): bad arguments 64 error: 2, IntlCalendar::after() expects exactly 1 parameter, 0 given 65 error: 2, IntlCalendar::after(): intlcal_before/after: bad arguments 67 error: 2, IntlCalendar::before() expects exactly 1 parameter, 0 given 68 error: 2, IntlCalendar::before(): intlcal_before/after: bad arguments 70 error: 0, Argument 1 passed to IntlCalendar::after() must be an instance of IntlCalendar, integer g… 72 error: 0, Argument 1 passed to IntlCalendar::before() must be an instance of IntlCalendar, integer … 74 error: 2, IntlCalendar::after() expects exactly 1 parameter, 2 given 75 error: 2, IntlCalendar::after(): intlcal_before/after: bad arguments 77 error: 2, IntlCalendar::before() expects exactly 1 parameter, 2 given [all …]
|
H A D | calendar_get_basic.phpt | 2 IntlCalendar::get() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 13 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 4); 15 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); 16 var_dump(intlcal_get($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH));
|
H A D | calendar_isEquivalentTo_basic.phpt | 2 IntlCalendar::isEquivalentTo() basic test 12 $intlcal1 = IntlCalendar::createInstance('Europe/Amsterdam'); 13 $intlcal2 = IntlCalendar::createInstance('Europe/Lisbon'); 14 $intlcal3 = IntlCalendar::createInstance('Europe/Amsterdam', "nl_NL@calendar=islamic"); 15 $intlcal4 = IntlCalendar::createInstance('Europe/Amsterdam'); 16 $intlcal4->roll(IntlCalendar::FIELD_MONTH, true);
|
H A D | calendar_setFirstDayOfWeek_basic.phpt | 2 IntlCalendar::setFirstDayOfWeek() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 14 IntlCalendar::DOW_TUESDAY, 15 $intlcal->setFirstDayOfWeek(IntlCalendar::DOW_TUESDAY), 17 intlcal_set_first_day_of_week($intlcal, IntlCalendar::DOW_WEDNESDAY),
|
H A D | calendar_equals_error.phpt | 2 IntlCalendar::equals(): bad arguments 49 error: 2, IntlCalendar::equals() expects exactly 1 parameter, 0 given 50 error: 2, IntlCalendar::equals(): intlcal_equals: bad arguments 52 error: 0, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, instance… 54 error: 0, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, integer … 56 error: 0, Argument 2 passed to intlcal_equals() must be an instance of IntlCalendar, array given 58 error: 0, Argument 1 passed to intlcal_equals() must be an instance of IntlCalendar, integer given
|
H A D | calendar_fieldDifference_basic.phpt | 2 IntlCalendar::fieldDifference() basic test 14 $intlcal = IntlCalendar::createInstance('UTC'); 19 IntlCalendar::FIELD_SECOND), 20 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY)); 28 IntlCalendar::FIELD_MINUTE));
|
H A D | calendar_getTime_basic.phpt | 2 IntlCalendar::getTime() basic test 14 $intlcal = IntlCalendar::createInstance('UTC'); 16 $intlcal->set(IntlCalendar::FIELD_YEAR, 2012); 17 $intlcal->set(IntlCalendar::FIELD_MONTH, 1 /* Feb */); 18 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 29);
|
H A D | calendar_clear_variation1.phpt | 2 IntlCalendar::clear() 1 arg variation 14 $intlcal = IntlCalendar::createInstance('UTC'); 17 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH)); 18 var_dump($intlcal->clear(IntlCalendar::FIELD_MONTH)); 19 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
|
H A D | calendar_isEquivalentTo_error.phpt | 2 IntlCalendar::isEquivalentTo(): bad arguments 53 error: 0, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, … 55 error: 2, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given 56 error: 2, IntlCalendar::isEquivalentTo(): intlcal_is_equivalent_to: bad arguments 58 error: 0, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, … 63 error: 0, Argument 2 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, inte… 65 error: 0, Argument 1 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, inte…
|