Skip to content

Commit

Permalink
fixed tests cases to print html
Browse files Browse the repository at this point in the history
  • Loading branch information
Humberto Pereira authored and markstory committed Jun 21, 2015
1 parent 2663099 commit 77150eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Cake/Test/Case/Error/ErrorHandlerTest.php
Expand Up @@ -19,6 +19,7 @@
App::uses('ErrorHandler', 'Error');
App::uses('Controller', 'Controller');
App::uses('Router', 'Routing');
App::uses('Debugger', 'Utility');

/**
* A faulty ExceptionRenderer to test nesting.
Expand Down Expand Up @@ -92,6 +93,8 @@ public function testHandleErrorDebugOn() {
set_error_handler('ErrorHandler::handleError');
$this->_restoreError = true;

Debugger::getInstance()->output('html');

ob_start();
$wrong .= '';
$result = ob_get_clean();
Expand Down Expand Up @@ -123,6 +126,8 @@ public function testErrorMapping($error, $expected) {
set_error_handler('ErrorHandler::handleError');
$this->_restoreError = true;

Debugger::getInstance()->output('html');

ob_start();
trigger_error('Test error', $error);

Expand Down

0 comments on commit 77150eb

Please sign in to comment.