public function testKeySort() { $map = new Map(["d" => 1, "e" => 2, "b" => 3]); $this->assertEquals(["b" => 3, "d" => 1, "e" => 2], $map->keySort()->toArray()); }