diff --git a/tests/layout/LayoutTest.php b/tests/layout/LayoutTest.php index dd785b6..bdff686 100644 --- a/tests/layout/LayoutTest.php +++ b/tests/layout/LayoutTest.php @@ -126,8 +126,8 @@ class LayoutTest extends PHPUnit_Framework_TestCase public function tearDown() { -// if (defined('DEBUG')) { -// $debug = DEBUG ? 'TRUE' : 'FALSE'; +// if (!is_null(Config::get('DEBUG'))) { +// $debug = Config::get('DEBUG') ? 'TRUE' : 'FALSE'; // echo PHP_EOL . __CLASS__ . ' DEBUG = ' . $debug . PHP_EOL; // } else { // echo PHP_EOL . __CLASS__ . ' ' . 'DEBUG NOT DEFINED' . PHP_EOL; diff --git a/tests/util/profiler/ProfilerTest.php b/tests/util/profiler/ProfilerTest.php index 6c01510..c3d4a90 100644 --- a/tests/util/profiler/ProfilerTest.php +++ b/tests/util/profiler/ProfilerTest.php @@ -131,8 +131,8 @@ class ProfilerTest extends PHPUnit_Framework_TestCase public function tearDown() { -// if (defined('DEBUG')) { -// $debug = DEBUG ? 'TRUE' : 'FALSE'; +// if (!is_null(Config::get('DEBUG'))) { +// $debug = Config::get('DEBUG') ? 'TRUE' : 'FALSE'; // echo PHP_EOL . __CLASS__ . ' ' . $debug . PHP_EOL; // } else { // echo PHP_EOL . __CLASS__ . ' ' . 'DEBUG NOT DEFINED' . PHP_EOL;