adding more levels to confiure test

This commit is contained in:
gwoo 2009-07-24 13:29:46 -07:00
parent 38e1954996
commit 7f6c2b6b33

View file

@ -114,6 +114,23 @@ class ConfigureTest extends CakeTestCase {
Configure::write('SomeName.someKey', null);
$result = Configure::read('SomeName.someKey');
$this->assertEqual($result, null);
$expected = array('One' => array('Two' => array('Three' => array('Four' => array('Five' => 'cool')))));
Configure::write('Key', $expected);
$result = Configure::read('Key');
$this->assertEqual($expected, $result);
$result = Configure::read('Key.One');
$this->assertEqual($expected['One'], $result);
$result = Configure::read('Key.One.Two');
$this->assertEqual($expected['One']['Two'], $result);
$result = Configure::read('Key.One.Two.Three.Four.Five');
$this->assertEqual('cool', $result);
}
/**
* testSetErrorReporting Level