public function test_rejct_1() { $arr = range(1, 10); Enumerator::reject_($arr, function ($key, $value) { return $value % 3 == 0; }); // [1, 2, 4, 5, 7, 8, 10] $this->assertEquals(array(0 => 1, 1 => 2, 3 => 4, 4 => 5, 6 => 7, 7 => 8, 9 => 10), $arr); }