/** * @dataProvider casesForUnion */ public function testChainedUnion($collections, $expected) { list($collection1, $collection2, $collection3) = $collections; $container = new Container($collection1); $actual = $container->union($collection2, $collection3)->value(); $this->assertEquals($expected, $actual); }