xref: /PHP-5.3/ext/date/tests/006.phpt (revision a9e5e222)
1--TEST--
2checkdate() tests
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6
7var_dump(checkdate());
8var_dump(checkdate(1,1,1));
9
10var_dump(checkdate(2,29,2006));
11var_dump(checkdate(31,6,2006));
12var_dump(checkdate(1,1,32768));
13var_dump(checkdate(1,1,32767));
14
15var_dump(checkdate(-1,1,2006));
16var_dump(checkdate(1,-1,2006));
17var_dump(checkdate(1,1,-1));
18
19echo "Done\n";
20?>
21--EXPECTF--
22Warning: checkdate() expects exactly 3 parameters, 0 given in %s on line %d
23bool(false)
24bool(true)
25bool(false)
26bool(false)
27bool(false)
28bool(true)
29bool(false)
30bool(false)
31bool(false)
32Done
33