public function testSliceWithEnd() { $collection = new Collection(['a', 'b', 'c', 'd']); $this->assertSame(['b', 'c'], $collection->slice(1, 2)->toArray()); }