/** * Test "merge with all" * * @return void */ public function testMergeWithAll() { $bag1 = new ParamBag(['a' => 1]); $bag2 = new ParamBag(['b' => 2]); $bag3 = new ParamBag(['c' => 3]); $bag3->mergeWithAll([$bag1, $bag2]); $this->assertEquals(['a' => [1], 'b' => [2], 'c' => [3]], $bag3->getArrayCopy()); }