Skip to content

Commit

Permalink
adding more levels to confiure test
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Jul 24, 2009
1 parent 38e1954 commit 7f6c2b6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cake/tests/cases/libs/configure.test.php
Expand Up @@ -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
Expand Down

0 comments on commit 7f6c2b6

Please sign in to comment.