summaryrefslogtreecommitdiff
path: root/ext/calendar/tests/cal_to_jd_error1.phpt
blob: c1911a77b7d5cd1f30483ab7622a1215c8a2f247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Test cal_to_jd() function : error conditions
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
try {
    cal_to_jd(-1, 8, 26, 74);
} catch (ValueError $ex) {
    echo "{$ex->getMessage()}\n";
}
?>
--EXPECT--
Invalid calendar ID: -1