Skip to content

Commit

Permalink
Migrating DebuggerTest to phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 7, 2010
1 parent bd7ce38 commit d3844de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cake/tests/cases/libs/debugger.test.php
Expand Up @@ -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');
Expand All @@ -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');
Expand Down Expand Up @@ -157,7 +155,6 @@ function testOutput() {
$this->assertPattern('/Undefined variable:\s+buzz/', $result[1]);
$this->assertPattern('/<a[^>]+>Code/', $result[1]);
$this->assertPattern('/<a[^>]+>Context/', $result[2]);
set_error_handler('simpleTestErrorHandler');
}

/**
Expand Down Expand Up @@ -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'
);
Expand Down

0 comments on commit d3844de

Please sign in to comment.