예제 #1
0
 public function testFillWithCallbackAndWithNegativeStartRange()
 {
     $records = array('John', 'Sallie', 'Jane');
     Enumerator::fill_($records, -1, function () {
         return 'x';
     });
     $this->assertEquals(array('John', 'Sallie', 'x'), $records);
 }