Example #1
0
 public function test_delete_3()
 {
     $arr = array('a', 'b', 'b', 'b', 'c');
     $ret = Enumerator::delete_($arr, 'z', function () {
         return false;
     });
     $this->assertEquals(false, $ret);
     $this->assertEquals(array('a', 'b', 'b', 'b', 'c'), $arr);
 }