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