Example #1
0
 public function testRemove()
 {
     $object = array(1, 2, 3, 4, 5);
     $return = array(1, 3, 5);
     $result = __::remove($object, function ($num) {
         if ($num % 2 == 0) {
             return true;
         } else {
             return false;
         }
     });
     $this->assertEquals($return, $result);
 }