Annotation of embedaddon/php/ext/standard/tests/math/mt_rand_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test mt_rand() - wrong params test mt_rand()
! 3: --FILE--
! 4: <?php
! 5: mt_rand(25);
! 6: mt_rand(10,100,false);
! 7: mt_rand("one", 100);
! 8: mt_rand(1, "hundered");
! 9: ?>
! 10:
! 11: --EXPECTF--
! 12:
! 13: Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line 2
! 14:
! 15: Warning: mt_rand() expects exactly 2 parameters, 3 given in %s on line 3
! 16:
! 17: Warning: mt_rand() expects parameter 1 to be long, string given in %s on line 4
! 18:
! 19: Warning: mt_rand() expects parameter 2 to be long, string given in %s on line 5
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>