/** * @dataProvider casesForToArray */ public function testChainedToArray($collection, $expected) { $container = new Container($collection); $actual = $container->toArray()->value(); $this->assertEquals($expected, $actual); }