Beispiel #1
0
 public function testMerge()
 {
     $map0 = ["one" => "a", "two" => ["one" => "a", "two" => ["one" => "a", "two" => "b", "three" => "c"]]];
     $map1 = ["one" => "b", "two" => ["two" => ["four" => "d"]], "three" => "c"];
     $map2 = ["two" => ["two" => ["five" => "e"]]];
     $map = CMap::merge($map0, $map1, $map2);
     $this->assertTrue(CMap::equals($map, ["one" => "b", "two" => ["one" => "a", "two" => ["one" => "a", "two" => "b", "three" => "c", "four" => "d", "five" => "e"]], "three" => "c"]));
 }