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