slice() public method

public slice ( $offset, $length = null )
 public function testSlice()
 {
     list($start, $limit) = array(0, 25);
     $collection = $this->getMockCollection();
     $collection->expects($this->once())->method('slice')->with($start, $limit)->will($this->returnValue(true));
     $dm = $this->getMockDocumentManager();
     $uow = $this->getMockUnitOfWork();
     $pCollection = new PersistentCollection($collection, $dm, $uow, '$');
     $pCollection->slice($start, $limit);
 }
 /**
  * {@inheritdoc}
  */
 public function slice($offset, $length = null)
 {
     return $this->collection->slice($offset, $length);
 }