|
@ -22,6 +22,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase |
|
|
{ |
|
|
{ |
|
|
$this->_instance = Config::getInstance(); |
|
|
$this->_instance = Config::getInstance(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function testGetInstance() |
|
|
public function testGetInstance() |
|
|
{ |
|
|
{ |
|
|
$this->assertSame($this->_instance, Config::getInstance()); |
|
|
$this->assertSame($this->_instance, Config::getInstance()); |
|
@ -39,11 +40,11 @@ class ConfigTest extends PHPUnit_Framework_TestCase |
|
|
public function testArrayAsParam() |
|
|
public function testArrayAsParam() |
|
|
{ |
|
|
{ |
|
|
$arr = array( |
|
|
$arr = array( |
|
|
'one' => 1, |
|
|
|
|
|
'two' => 2, |
|
|
|
|
|
'three' => 3, |
|
|
|
|
|
4 => 'four' |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
'one' => 1, |
|
|
|
|
|
'two' => 2, |
|
|
|
|
|
'three' => 3, |
|
|
|
|
|
4 => 'four' |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
Config::set(0, $arr); |
|
|
Config::set(0, $arr); |
|
|
$new_arr = Config::get(0); |
|
|
$new_arr = Config::get(0); |
|
|