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

1.1       misho       1: --TEST--
                      2: Test mt_srand() - basic function (return values) mt_srand()
                      3: --FILE--
                      4: <?php
                      5: // Should return NULL if given anything that it can convert to long
                      6: // This doesn't actually test what it does with the input :-\
                      7: var_dump(mt_srand());
                      8: var_dump(mt_srand(500));
                      9: var_dump(mt_srand(500.1));
                     10: var_dump(mt_srand("500"));
                     11: var_dump(mt_srand("500E3"));
                     12: var_dump(mt_srand(true));
                     13: var_dump(mt_srand(false));
                     14: var_dump(mt_srand(NULL));
                     15: ?>
                     16: --EXPECTF--
                     17: NULL
                     18: NULL
                     19: NULL
                     20: NULL
                     21: NULL
                     22: NULL
                     23: NULL
                     24: NULL

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