1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/standard/tests/random/random_int_error.phpt
SammyK dd2692621d Add tests for CSPRNG, fix C99 comments
Also replace one return; with RETURN_FALSE; for consistency.
2015-05-09 22:29:26 +02:00

23 lines
437 B
PHP

--TEST--
Test error operation of random_int()
--FILE--
<?php
//-=-=-=-
var_dump(random_int());
var_dump(random_int(10));
var_dump(random_int(10, 0));
?>
--EXPECTF--
Warning: random_int() expects exactly 2 parameters, 0 given in %s on line %d
NULL
Warning: random_int() expects exactly 2 parameters, 1 given in %s on line %d
NULL
Warning: random_int(): Minimum value must be less than the maximum value in %s on line %d
bool(false)