You are here

static function Braintree_TestHelper::_errorHandler in Commerce Braintree 7

File

braintree_php/tests/TestHelper.php, line 81

Class

Braintree_TestHelper

Code

static function _errorHandler($errno, $errstr, $errfile, $errline) {
  if (preg_match('/^DEPRECATED/', $errstr) == 0) {
    trigger_error('Unknown error received: ' . $errstr, E_USER_ERROR);
  }
}