/** * @dataProvider casesForAny */ public function testChainedAny($collection, $predicate, $expected) { $container = new Container($collection); $actual = $container->any($predicate)->value(); $this->assertEquals($expected, $actual); }