/** * @dataProvider casesForTake */ public function testChainedTake($collection, $count, $fromStart, $expected) { $container = new Container($collection); $actual = $container->take($count, $fromStart)->value(); $this->assertEquals($expected, $actual); }