Go to the source code of this file.
|
| if (!defined( 'TESTS_TEMP_DIR')) |
|
◆ setCustomErrorHandler()
setCustomErrorHandler |
( |
| ) |
|
Set custom error handler
Definition at line 29 of file bootstrap.php.
32 function ($errNo, $errStr, $errFile, $errLine) {
33 if (error_reporting()) {
36 E_WARNING =>
'Warning',
39 E_CORE_ERROR =>
'Core Error',
40 E_CORE_WARNING =>
'Core Warning',
41 E_COMPILE_ERROR =>
'Compile Error',
42 E_COMPILE_WARNING =>
'Compile Warning',
43 E_USER_ERROR =>
'User Error',
44 E_USER_WARNING =>
'User Warning',
45 E_USER_NOTICE =>
'User Notice',
47 E_RECOVERABLE_ERROR =>
'Recoverable Error',
48 E_DEPRECATED =>
'Deprecated',
49 E_USER_DEPRECATED =>
'User Deprecated',
52 $errName = isset($errorNames[$errNo]) ? $errorNames[$errNo] :
"";
54 throw new \PHPUnit\Framework\Exception(
55 sprintf(
"%s: %s in %s:%s.", $errName, $errStr, $errFile, $errLine),
◆ if
if(!defined('TESTS_TEMP_DIR')) |
Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.
Definition at line 9 of file bootstrap.php.