From 7ac76f3e0b25e633d99dd6aa70d8f2ab1822bb0a Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 21 Jun 2010 22:39:17 -0400 Subject: [PATCH] Making Debugger test case play nicely with TestSuites. --- cake/tests/cases/libs/debugger.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/debugger.test.php b/cake/tests/cases/libs/debugger.test.php index cb8559469..61361665e 100644 --- a/cake/tests/cases/libs/debugger.test.php +++ b/cake/tests/cases/libs/debugger.test.php @@ -46,6 +46,7 @@ class DebuggerTest extends CakeTestCase { * @return void */ function setUp() { + parent::setup(); Configure::write('log', false); } @@ -56,6 +57,7 @@ class DebuggerTest extends CakeTestCase { * @return void */ function tearDown() { + parent::teardown(); Configure::write('log', true); } @@ -148,6 +150,8 @@ class DebuggerTest extends CakeTestCase { $this->assertPattern('/Undefined variable:\s+buzz/', $result[1]); $this->assertPattern('/]+>Code/', $result[1]); $this->assertPattern('/]+>Context/', $result[2]); + + restore_error_handler(); } /**