Moving setExpectedException
This commit is contained in:
@ -91,10 +91,9 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', true);
|
||||
}
|
||||
|
||||
$this->setExpectedException('GeneralException', 'call_user_func_array() expects parameter 1 to be a valid callback');
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
$redisDebug = new RedisDebug($mock);
|
||||
|
||||
$this->setExpectedException('GeneralException');
|
||||
|
||||
$this->assertNull($redisDebug->nothing('localhost', 4322));
|
||||
|
Reference in New Issue
Block a user