From d3844dee560609f6191e1f5189c597597c950ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Mon, 7 Jun 2010 00:10:35 -0430 Subject: [PATCH] Migrating DebuggerTest to phpunit --- cake/tests/cases/libs/debugger.test.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cake/tests/cases/libs/debugger.test.php b/cake/tests/cases/libs/debugger.test.php index 7f8992515c4..f083012ea08 100644 --- a/cake/tests/cases/libs/debugger.test.php +++ b/cake/tests/cases/libs/debugger.test.php @@ -119,7 +119,6 @@ function testOutput() { $this->assertEqual($result[0]['error'], 'Notice'); $this->assertPattern('/Undefined variable\:\s+out/', $result[0]['description']); $this->assertPattern('/DebuggerTest::testOutput/i', $result[0]['trace']); - $this->assertPattern('/SimpleInvoker::invoke/i', $result[0]['trace']); ob_start(); Debugger::output('txt'); @@ -129,7 +128,6 @@ function testOutput() { $this->assertPattern('/Undefined variable:\s+other/', $result); $this->assertPattern('/Context:/', $result); $this->assertPattern('/DebuggerTest::testOutput/i', $result); - $this->assertPattern('/SimpleInvoker::invoke/i', $result); ob_start(); Debugger::output('html'); @@ -157,7 +155,6 @@ function testOutput() { $this->assertPattern('/Undefined variable:\s+buzz/', $result[1]); $this->assertPattern('/]+>Code/', $result[1]); $this->assertPattern('/]+>Context/', $result[2]); - set_error_handler('simpleTestErrorHandler'); } /** @@ -185,13 +182,12 @@ function testChangeOutputFormats() { ob_start(); $foo .= ''; $result = ob_get_clean(); - set_error_handler('SimpleTestErrorHandler'); $data = array( 'error' => array(), 'code' => array(), '8', '/code', 'file' => array(), 'preg:/[^<]+/', '/file', - 'line' => array(), '' . (intval(__LINE__) + -8), '/line', + 'line' => array(), '' . (intval(__LINE__) - 7), '/line', 'preg:/Undefined variable:\s+foo/', '/error' );