1--TEST--
2Test cal_from_jd() function : error conditions
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--EXTENSIONS--
6calendar
7--FILE--
8<?php
9try {
10    cal_from_jd(1748326, -1);
11} catch (ValueError $ex) {
12    echo "{$ex->getMessage()}\n";
13}
14?>
15--EXPECT--
16cal_from_jd(): Argument #2 ($calendar) must be a valid calendar ID
17