public function test_compact_2() { $arr = array(1, 2, 3, null, array(2, 3, 4, null)); Enumerator::compact_($arr, true); $this->assertEquals(array(1, 2, 3, 4 => array(2, 3, 4)), $arr); }