public function testSliceInArrayCollection() { $collection = new ArrayCollection(array(0, 1, 2, 3, 4, 5)); $slice = $collection->slice(0); $this->assertCount(6, $slice); $slice = $collection->slice(2); $this->assertCount(4, $slice); $slice = $collection->slice(2, 1); $this->assertCount(1, $slice); }