summaryrefslogtreecommitdiff
path: root/ext/calendar/tests/cal_days_in_month_error1.phpt
blob: aeb304e8ec06572047f0f26362277dd1148ebfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Test cal_days_in_month() function : error conditions
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
var_dump(cal_days_in_month(-1, 4, 2017));
var_dump(cal_days_in_month(CAL_GREGORIAN,0, 2009));
?>
--EXPECTF--
Warning: cal_days_in_month(): invalid calendar ID -1 in %s on line %d
bool(false)

Warning: cal_days_in_month(): invalid date in %s on line %d
bool(false)