Fixed tests RedisDebugTest, ProfilerTest with use PROFILER setting.

This commit is contained in:
Alexander Demidov
2012-07-09 14:28:02 +04:00
parent a0010c3706
commit 69cd61121e
2 changed files with 11 additions and 11 deletions

View File

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