示例#1
0
 public function testFlatten()
 {
     $config = array('one' => 'hello world', 'two' => array('twoA' => array('one', 'two', 'three'), 'other' => 'value'));
     $expected = array('one' => 'hello world', 'two.twoA.0' => 'one', 'two.twoA.1' => 'two', 'two.twoA.2' => 'three', 'two.other' => 'value');
     $this->assertEquals($expected, Config::flatten($config));
 }