Exemple #1
0
 public function testOverrideArrayValues()
 {
     $defaultConfig = array('one' => 'hello world', 'two' => array('twoA' => array('one', 'two', 'three'), 'other' => 'value'));
     $configOverride = array('one' => 'foo bar', 'two' => array('twoA' => array('four', 'five', 'six')));
     $expected = array('one' => 'foo bar', 'two' => array('twoA' => array('four', 'five', 'six'), 'other' => 'value'));
     $this->assertEquals($expected, Config::override($defaultConfig, $configOverride));
 }