From: Tim Otten Date: Sat, 19 Sep 2015 05:03:20 +0000 (-0700) Subject: CRM_Core_Error - Don't display HTML crash when running tests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2b2c4099da39bbb822f29c05c39c44a094fc6554;p=civicrm-core.git CRM_Core_Error - Don't display HTML crash when running tests --- diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index 0713da07d9..fac4e88d02 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -170,6 +170,9 @@ class CRM_Core_Error extends PEAR_ErrorStack { * @param object $pearError PEAR_Error */ public static function handle($pearError) { + if (defined('CIVICRM_TEST')) { + return self::simpleHandler($pearError); + } // setup smarty with config, session and template location. $template = CRM_Core_Smarty::singleton();