Example #1
0
 public function testExpand()
 {
     $flatConfig = array('one' => 'hello world', 'two.twoA.0' => 'one', 'two.twoA.1' => 'two', 'two.twoA.2' => 'three', 'two.other' => 'value');
     $expected = array('one' => 'hello world', 'two' => array('twoA' => array('one', 'two', 'three'), 'other' => 'value'));
     $this->assertEquals($expected, Config::expand($flatConfig));
 }