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