Fixed tests RedisDebugTest, ProfilerTest with use PROFILER setting.
This commit is contained in:
@ -59,7 +59,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallSimpleParams()
|
||||
{
|
||||
Config::set('DEBUG', true);
|
||||
Config::set('PROFILER', true);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
|
||||
$mock->expects($this->once())
|
||||
@ -77,7 +77,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallArrayParam()
|
||||
{
|
||||
Config::set('DEBUG', true);
|
||||
Config::set('PROFILER', true);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
|
||||
$mock->expects($this->once())
|
||||
@ -95,7 +95,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallUndefinedMethod()
|
||||
{
|
||||
Config::set('DEBUG', true);
|
||||
Config::set('PROFILER', true);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
$redisDebug = new RedisDebug($mock);
|
||||
|
||||
|
Reference in New Issue
Block a user