Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Test ArgumentNormalizer::compareVariadicKeys()
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Apr 10, 2023
1 parent d0ede4e commit 7f6d497
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/suite/Call/ArgumentNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,13 @@ public function testNormalizeMaintainsReferences()
$this->assertSame(555, $actual['a']);
$this->assertSame(666, $actual['b']);
}

public function testCompareVariadicKeys()
{
$actual = [1, 'b', 2, 'c', 0, 'a'];
$expected = [0, 1, 2, 'a', 'b', 'c'];
usort($actual, [ArgumentNormalizer::class, 'compareVariadicKeys']);

$this->assertSame($expected, $actual);
}
}

0 comments on commit 7f6d497

Please sign in to comment.