Browse Source

replacement @expectedException to setExpectedException

master
Vyacheslav Agafonov 13 years ago
parent
commit
77f69b033d
  1. 6
      tests/ConfigTest.php

6
tests/ConfigTest.php

@ -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));

Loading…
Cancel
Save