Making Debugger test case play nicely with TestSuites.

This commit is contained in:
mark_story 2010-06-21 22:39:17 -04:00
parent 9df7268080
commit 7ac76f3e0b

View file

@ -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('/<a[^>]+>Code/', $result[1]);
$this->assertPattern('/<a[^>]+>Context/', $result[2]);
restore_error_handler();
}
/**