function peach_error_handler($errno, $errstr, $errfile, $errline) { $msg = "{$errno} : {$errstr} in {$errline} of {$errfile}"; Error::log($msg); ExceptionHandler::show_error('an error occurred'); return true; }
/** * @covers System\handler\ExceptionHandler::show_error */ public function test_show_error() { ob_start(); ExceptionHandler::show_error('an error occurred'); ob_end_clean(); self::assertNull(error_get_last()); }