/** * @dataProvider casesForPluck */ public function testChainedPluck($collection, $path, $expected) { $container = new Container($collection); $actual = $container->pluck($path)->value(); $this->assertEquals($expected, $actual); }