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