Skip to content

Commit a19dabc

Browse files
committed
Add test for asort stability
1 parent 9ae5553 commit a19dabc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
asort() is stable
3+
--FILE--
4+
<?php
5+
6+
$array = $origArray = array_fill(0, 1000, null);
7+
asort($array);
8+
var_dump($array === $origArray);
9+
10+
?>
11+
--EXPECT--
12+
bool(true)

0 commit comments

Comments
 (0)