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