summaryrefslogtreecommitdiff
path: root/ext/standard/tests/random/random_int_error.phpt
blob: 5f7a69b21540acf1e014cbdaf05fcc2f676e6eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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)