xref: /PHP-8.2/ext/standard/tests/array/bug79868.phpt (revision 6f8d0ba0)
1--TEST--
2Bug #79868: Sorting with array_unique gives unwanted result
3--FILE--
4<?php
5
6var_dump(array_unique(['b', 'a', 'b'], SORT_REGULAR));
7
8?>
9--EXPECT--
10array(2) {
11  [0]=>
12  string(1) "b"
13  [1]=>
14  string(1) "a"
15}
16