1--TEST--
2Test unixtojd() function : error conditions
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--EXTENSIONS--
6calendar
7--INI--
8date.timezone=UTC
9--FILE--
10<?php
11putenv('TZ=UTC');
12
13try {
14    unixtojd(-1);
15} catch (ValueError $ex) {
16    echo $ex->getMessage(), PHP_EOL;
17}
18var_dump(unixtojd(false)) . PHP_EOL;
19var_dump(unixtojd(null)) . PHP_EOL;
20var_dump(unixtojd(time())) . PHP_EOL;
21?>
22--EXPECTF--
23unixtojd(): Argument #1 ($timestamp) must be greater than or equal to 0
24int(%d)
25int(%d)
26int(%d)
27