Annotation of embedaddon/php/ext/standard/tests/math/rand_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test  rand() - wrong params test rand()
                      3: --FILE--
                      4: <?php
                      5: rand(25);
                      6: rand(10,100,false);
                      7: rand("one", 100);
                      8: rand(1, "hundered");
                      9: ?>
                     10: --EXPECTF--
                     11: 
                     12: Warning: rand() expects exactly 2 parameters, 1 given in %s on line 2
                     13: 
                     14: Warning: rand() expects exactly 2 parameters, 3 given in %s on line 3
                     15: 
                     16: Warning: rand() expects parameter 1 to be long, string given in %s on line 4
                     17: 
                     18: Warning: rand() expects parameter 2 to be long, string given in %s on line 5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>