public static function replace($arrays)
{
$merged = [];
foreach ($arrays as $array) {
$merged = array_merge($merged, $array);
}
return $merged;
}
/** * */ public function testApiInvoke_MergesConfiguration() { $overwrite = $this->createOverwriteHandler(); $old = $this->getRawData(); $new = ['b' => ['b' => 'new_Option'], 'h' => 'test', 'a' => 5]; $data = $overwrite($old, $new); $this->assertSame(ArraySupport::replace([$new, $old]), $data); }