From 2b2c4099da39bbb822f29c05c39c44a094fc6554 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 18 Sep 2015 22:03:20 -0700 Subject: [PATCH] CRM_Core_Error - Don't display HTML crash when running tests --- CRM/Core/Error.php | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.25.1