Skip to content

Commit

Permalink
add test case for rsort()
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokinoue committed Apr 28, 2022
1 parent 1605b18 commit db565f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/ArrayFunctionCallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1781,9 +1781,12 @@ function getCharPairs(string $line) : array {
'rsort' => [
'<?php
$array = ["foo" => 123, "bar" => 456];
rsort($array);',
rsort($array);
$emptyArray = [];
rsort($emptyArray);',
'assertions' => [
'$array' => 'list<int>',
'$array' => 'non-empty-list<int>',
'$emptyArray' => 'list<empty>',
],
],
'usort' => [
Expand Down

0 comments on commit db565f1

Please sign in to comment.