Annotation of embedaddon/php/ext/standard/tests/math/mt_srand_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test mt_srand() - wrong params test mt_srand()
! 3: --FILE--
! 4: <?php
! 5: var_dump(mt_srand(500, true));
! 6: var_dump(mt_srand("fivehundred"));
! 7: var_dump(mt_srand("500ABC"));
! 8: ?>
! 9: --EXPECTF--
! 10: Warning: mt_srand() expects at most 1 parameter, 2 given in %s on line 2
! 11: NULL
! 12:
! 13: Warning: mt_srand() expects parameter 1 to be long, string given in %s on line 3
! 14: NULL
! 15:
! 16: Notice: A non well formed numeric value encountered in %s on line 4
! 17: NULL
! 18:
! 19:
! 20:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>