/** * @dataProvider casesForThru */ public function testChainedThru($collection, $interceptor, $expected) { $container = new Container($collection); $actual = $container->thru($interceptor)->value(); $this->assertSame($expected, $actual); }