Exemplo n.º 1
0
 public function testSliceNonDestructiveGaveNew()
 {
     $records = array('John', 'Sallie', 'Jane');
     $results = Enumerator::slice($records, 0, 1);
     $this->assertEquals(array('John'), $results);
 }