diff options
Diffstat (limited to 'ext/calendar/tests/cal_from_jd_error1.phpt')
-rw-r--r-- | ext/calendar/tests/cal_from_jd_error1.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/calendar/tests/cal_from_jd_error1.phpt b/ext/calendar/tests/cal_from_jd_error1.phpt new file mode 100644 index 0000000000..1d2cf39c07 --- /dev/null +++ b/ext/calendar/tests/cal_from_jd_error1.phpt @@ -0,0 +1,13 @@ +--TEST-- +Test cal_from_jd() function : error conditions +--CREDITS-- +edgarsandi - <edgar.r.sandi@gmail.com> +--SKIPIF-- +<?php include 'skipif.inc'; ?> +--FILE-- +<?php +var_dump(cal_from_jd(1748326, -1)); +?> +--EXPECTF-- +Warning: cal_from_jd(): invalid calendar ID -1 in %s on line %d +bool(false)
\ No newline at end of file |