Skip to content

Commit db565f1

Browse files
committed
add test case for rsort()
1 parent 1605b18 commit db565f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎tests/ArrayFunctionCallTest.php‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,9 +1781,12 @@ function getCharPairs(string $line) : array {
17811781
'rsort' => [
17821782
'<?php
17831783
$array = ["foo" => 123, "bar" => 456];
1784-
rsort($array);',
1784+
rsort($array);
1785+
$emptyArray = [];
1786+
rsort($emptyArray);',
17851787
'assertions' => [
1786-
'$array' => 'list<int>',
1788+
'$array' => 'non-empty-list<int>',
1789+
'$emptyArray' => 'list<empty>',
17871790
],
17881791
],
17891792
'usort' => [

0 commit comments

Comments
 (0)