replacement @expectedException to setExpectedException
This commit is contained in:
@ -32,8 +32,6 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage Need to turn on DEBUG before use.
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testGetInstaceNoDebug()
|
||||
@ -41,6 +39,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', false);
|
||||
}
|
||||
$this->setExpectedException('GeneralException', 'Need to turn on DEBUG before use.');
|
||||
Profiler::getInstance();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user