Skip to content
Permalink
Browse files

adding more levels to confiure test

  • Loading branch information...
gwoo
gwoo committed Jul 24, 2009
1 parent 38e1954 commit 7f6c2b6b336c080689d2353b45bd28fec82d5e98
Showing with 17 additions and 0 deletions.
  1. +17 −0 cake/tests/cases/libs/configure.test.php
@@ -114,6 +114,23 @@ function testWrite() {
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

0 comments on commit 7f6c2b6

Please sign in to comment.
You can’t perform that action at this time.