Exemplo n.º 1
0
 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());
 }