xref: /php-src/ext/standard/tests/array/bug48224.phpt (revision fbb11e58)
1--TEST--
2Bug #48224 (array_rand no longer shuffles)
3--FILE--
4<?php
5$a = range(0, 100);
6$a1 = array_rand($a, count($a));
7$a2 = array_rand($a, count($a));
8$a3 = array_rand($a, count($a));
9$a4 = array_rand($a, count($a));
10
11var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4);
12
13?>
14--EXPECT--
15bool(true)
16