Ejemplo n.º 1
0
 public function test_drop_while_1()
 {
     $arr = array(1, 2, 3, 4, 5, 0);
     Enumerator::drop_while_($arr, function ($key, &$value) {
         return $value < 3;
     });
     $this->assertEquals(array(3, 4, 5, 0), $arr);
 }