Replace constant DEBUG to use in Config. Remove start profiler from FrontController (moved to bootstrap).
This commit is contained in:
@ -57,9 +57,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallSimpleParams()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', true);
|
||||
}
|
||||
Config::set('DEBUG', 1);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
|
||||
$mock->expects($this->once())
|
||||
@ -77,9 +75,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallArrayParam()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', true);
|
||||
}
|
||||
Config::set('DEBUG', 1);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
|
||||
$mock->expects($this->once())
|
||||
@ -97,9 +93,7 @@ class RedisDebugTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCallUndefinedMethod()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', true);
|
||||
}
|
||||
Config::set('DEBUG', 1);
|
||||
$mock = $this->getMock('Redis', array('connect'));
|
||||
$redisDebug = new RedisDebug($mock);
|
||||
|
||||
|
Reference in New Issue
Block a user