public function testSplice() { $map = new Map(["a" => 1, "b" => 2, "c" => 3, "d" => 3]); $this->assertEquals(["a" => 1, "d" => 3], $map->splice(1, 2)->toArray()); }