public function testFilter() { $map = new Map(['a' => 'a', 'b' => 'b', 'c' => 'c']); $map2 = $map->filter(function ($item) { return $item != 'b'; }); $this->assertSame(['a' => 'a', 'c' => 'c'], $map2->toArray()); }
public function testFilter() { $map = new Map(['a' => 'a', 'b' => 'b', 'c' => 'c']); $map2 = $map->filter(function ($item) { return $item != 'b'; }); $this->assertSame(['a' => 'a', 'c' => 'c'], $map2->toArray()); }