Lines Matching refs:sleep
2 Test sleep() function : error conditions
5 /* Prototype : int sleep ( int $seconds )
11 echo "*** Testing sleep() : error conditions ***\n";
13 echo "\n-- Testing sleep() function with zero arguments --\n";
14 var_dump( sleep() );
16 echo "\n-- Testing sleep() function with more than expected no. of arguments --\n";
19 var_dump( sleep($seconds, $extra_arg) );
21 echo "\n-- Testing sleep() function with negative interval --\n";
23 var_dump( sleep($seconds) );
28 *** Testing sleep() : error conditions ***
30 -- Testing sleep() function with zero arguments --
32 Warning: sleep() expects exactly 1 parameter, 0 given in %s on line %d
35 -- Testing sleep() function with more than expected no. of arguments --
37 Warning: sleep() expects exactly 1 parameter, 2 given in %s on line %d
40 -- Testing sleep() function with negative interval --
42 Warning: sleep(): Number of seconds must be greater than or equal to 0 in %s on line %d