TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
360 B
18 lines
360 B
--TEST--
|
|
array_method: 1
|
|
--FILE--
|
|
<?php
|
|
|
|
function main()
|
|
{
|
|
require __DIR__ . '/../../../src/Assert.php';
|
|
|
|
$array = ["lemon", "orange", "banana", "apple"];
|
|
$sorted_array = array("apple", "banana", "lemon", "orange",);
|
|
$array->sort(SORT_NATURAL | SORT_FLAG_CASE);
|
|
Assert::same($array, $sorted_array);
|
|
echo "done\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
done
|
|
|