Replace constant DEBUG to use in Config. Remove start profiler from FrontController (moved to bootstrap).
This commit is contained in:
@ -40,9 +40,8 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testSetException()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', false);
|
||||
}
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
$layout = new ErrorLayout();
|
||||
$layout->setException(new GeneralException());
|
||||
$this->assertAttributeInstanceOf('GeneralException', 'exception', $layout);
|
||||
@ -50,9 +49,8 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testExecute()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', false);
|
||||
}
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
$action = $this->getMock('Action', array('fetch'));
|
||||
$action->expects($this->once())
|
||||
->method('fetch')
|
||||
|
Reference in New Issue
Block a user