public function testSortCustom() { $map = new MutableMap('a', 'b', 'c'); $map->sort(function ($a, $b) { return !strcmp($a, $b); }); $this->assertEquals(['c', 'b', 'a'], $map->getArray()); }