Exemple #1
0
 public function testDropWhile()
 {
     $newMap = $this->map->dropWhile(function ($k, $v) {
         return 'foo' === $k || 'baz' === $v;
     });
     $this->assertEquals(array('baz' => 'boo'), iterator_to_array($newMap));
     $this->assertCount(3, $this->map);
 }