cvs: php-src /ext/standard/tests/array bug48224.phpt

From: Date: Sun, 10 May 2009 20:13:08 +0000
Subject: cvs: php-src /ext/standard/tests/array bug48224.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-57689@lists.php.net to get a copy of this message
colder Sun May 10 20:13:08 2009 UTC Modified files: /php-src/ext/standard/tests/array bug48224.phpt Log: MFB: Add test for #48224 http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/bug48224.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/array/bug48224.phpt diff -u /dev/null php-src/ext/standard/tests/array/bug48224.phpt:1.2 --- /dev/null Sun May 10 20:13:08 2009 +++ php-src/ext/standard/tests/array/bug48224.phpt Sun May 10 20:13:08 2009 @@ -0,0 +1,15 @@ +--TEST-- +Bug #48224 (array_rand no longer shuffles) +--FILE-- +<?php +$a = range(0, 100); +$a1 = array_rand($a, count($a)); +$a2 = array_rand($a, count($a)); +$a3 = array_rand($a, count($a)); +$a4 = array_rand($a, count($a)); + +var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4); + +?> +--EXPECT-- +bool(true)

« previous php.cvs (#57689) next »