Skip to content

Commit

Permalink
update test for array key map method
Browse files Browse the repository at this point in the history
  • Loading branch information
Muetze42 committed Dec 18, 2023
1 parent a675342 commit 353c174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Support/SupportArrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,9 @@ public function testMap()
public function testKeyMap()
{
$data = ['First' => 'taylor', 'Last' => 'otwell'];
$mapped = Arr::keyMap(function ($key) {
$mapped = Arr::keyMap($data, function ($key) {
return strtolower($key);
}, $data);
});
$this->assertEquals(['first' => 'taylor', 'last' => 'otwell'], $mapped);
$this->assertEquals(['First' => 'taylor', 'Last' => 'otwell'], $data);
}
Expand Down

0 comments on commit 353c174

Please sign in to comment.