replacement @expectedException to setExpectedException
This commit is contained in:
@ -34,10 +34,6 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertNotEquals('Config', get_class(Config::getInstance()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage Configuration variable
|
||||
*/
|
||||
public function testArrayAsParam()
|
||||
{
|
||||
$arr = array(
|
||||
@ -46,7 +42,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
'three' => 3,
|
||||
4 => 'four'
|
||||
);
|
||||
|
||||
$this->setExpectedException('GeneralException', 'Configuration variable');
|
||||
Config::set(0, $arr);
|
||||
$new_arr = Config::get(0);
|
||||
$this->assertEquals('ConfigArray', get_class($new_arr));
|
||||
|
Reference in New Issue
Block a user