replacement @expectedException to setExpectedException
This commit is contained in:
@ -33,12 +33,9 @@ class ErrorHandlerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($eh, $my_eh);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException ErrorException
|
||||
* @expectedExceptionMessage test error
|
||||
*/
|
||||
public function testHandleError()
|
||||
{
|
||||
$this->setExpectedException('ErrorException', 'test error');
|
||||
trigger_error("test error", E_USER_ERROR);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user