Go to the source code of this file.
◆ setCustomErrorHandler()
setCustomErrorHandler |
( |
| ) |
|
Set custom error handler
Definition at line 35 of file bootstrap.php.
38 function ($errNo, $errStr, $errFile, $errLine) {
39 if (error_reporting()) {
42 E_WARNING =>
'Warning',
45 E_CORE_ERROR =>
'Core Error',
46 E_CORE_WARNING =>
'Core Warning',
47 E_COMPILE_ERROR =>
'Compile Error',
48 E_COMPILE_WARNING =>
'Compile Warning',
49 E_USER_ERROR =>
'User Error',
50 E_USER_WARNING =>
'User Warning',
51 E_USER_NOTICE =>
'User Notice',
53 E_RECOVERABLE_ERROR =>
'Recoverable Error',
54 E_DEPRECATED =>
'Deprecated',
55 E_USER_DEPRECATED =>
'User Deprecated',
58 $errName = isset($errorNames[$errNo]) ? $errorNames[$errNo] :
"";
60 throw new \PHPUnit\Framework\Exception(
61 sprintf(
"%s: %s in %s:%s.", $errName, $errStr, $errFile, $errLine),
◆ $componentRegistrar
◆ $dirSearch
◆ $regexIteratorFactory
◆ $serializer
◆ $themePackageList