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