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