Skip to content
Permalink
Browse files

fixed tests cases to print html

  • Loading branch information...
Humberto Pereira authored and markstory committed Jun 13, 2015
1 parent 2663099 commit 77150eb6f6675f1dc7ca9a366135826c53cbeb91
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/Test/Case/Error/ErrorHandlerTest.php
@@ -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.
@@ -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();
@@ -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);

0 comments on commit 77150eb

Please sign in to comment.
You can’t perform that action at this time.