Skip to content

Commit

Permalink
Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jul 14, 2013
1 parent 7522784 commit f7c5911
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion unit-tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ public function testIniConfig()
$this->assertTrue($this->_compareConfig($this->_config, $config));
}

public function testStandarConfig()
public function testJSONConfig()
{
$config = new Phalcon\Config\Adapter\Json('unit-tests/config/config.json');
$this->assertTrue($this->_compareConfig($this->_config, $config));
}

public function testStandardConfig()
{
$config = new Phalcon\Config($this->_config);
$this->_compareConfig($this->_config, $config);
Expand Down
Empty file modified unit-tests/config/config.ini
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions unit-tests/config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"},"database":{"adapter":"mysql","host":"localhost","username":"user","password":"passwd","name":"demo"},"test":{"parent":{"property2":"yeah"}}}

0 comments on commit f7c5911

Please sign in to comment.