merge() public method

Merges the specified options with these ones. Values with same ID will be replaced.
public merge ( array | OptionsArray $options ) : void
$options array | OptionsArray The options to be merged.
return void
コード例 #1
0
 public function testMerge()
 {
     $component = new OptionsArray(array('a'));
     $component->merge(array('b', 'c'));
     $this->assertEquals($component->options, array('a', 'b', 'c'));
 }