merge() публичный Метод

Merges these settings in with the other settings from the overrides config file
public merge ( array $settings ) : void
$settings array
Результат void
Пример #1
0
 public function test_it_can_merge()
 {
     // given
     $overridesFile = vfsStream::url('root/my/path/config.overrides.php');
     $settings = ['b' => 4, 'other.thing' => 'Some value'];
     // when
     $Framework = new \Devise\Support\Framework();
     $SettingsManager = new SettingsManager($Framework, $overridesFile);
     $SettingsManager->merge($settings);
     // then
     $results = (require $overridesFile);
     assertEquals(["a" => 1, "b" => 4, "other.thing" => "Some value"], $results);
 }