ErrorHandler
in package
implements
EventSubscriberInterface
uses
StaticEvents
Table of Contents
Interfaces
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Properties
- $events : mixed
- $convertDeprecationsToExceptions : mixed
- $deprecationsInstalled : mixed
- $errorLevel : int
- $initialized : bool
- $oldHandler : mixed
- $stopped : bool
- $suiteFinished : mixed
Methods
- __construct() : mixed
- errorHandler() : mixed
- getSubscribedEvents() : mixed
- handle() : mixed
- onFinish() : mixed
- shutdownHandler() : mixed
- handleDeprecationError() : mixed
- registerDeprecationErrorHandler() : mixed
Properties
$events
public
static mixed
$events
= [\Codeception\Events::SUITE_BEFORE => 'handle', \Codeception\Events::SUITE_AFTER => 'onFinish']
$convertDeprecationsToExceptions
private
mixed
$convertDeprecationsToExceptions
= false
$deprecationsInstalled
private
mixed
$deprecationsInstalled
= false
$errorLevel
private
int
$errorLevel
stores bitmask for errors
$initialized
private
bool
$initialized
= false
to avoid double error handler substitution
$oldHandler
private
mixed
$oldHandler
$stopped
private
bool
$stopped
= false
to keep shutdownHandler from possible looping.
$suiteFinished
private
mixed
$suiteFinished
= false
Methods
__construct()
public
__construct() : mixed
errorHandler()
public
errorHandler(mixed $errno, mixed $errstr, mixed $errfile, mixed $errline[, mixed $context = array() ]) : mixed
Parameters
- $errno : mixed
- $errstr : mixed
- $errfile : mixed
- $errline : mixed
- $context : mixed = array()
getSubscribedEvents()
public
static getSubscribedEvents() : mixed
handle()
public
handle(SuiteEvent $e) : mixed
Parameters
- $e : SuiteEvent
onFinish()
public
onFinish(SuiteEvent $e) : mixed
Parameters
- $e : SuiteEvent
shutdownHandler()
public
shutdownHandler() : mixed
handleDeprecationError()
private
handleDeprecationError(mixed $type, mixed $message, mixed $file, mixed $line, mixed $context) : mixed
Parameters
- $type : mixed
- $message : mixed
- $file : mixed
- $line : mixed
- $context : mixed
registerDeprecationErrorHandler()
private
registerDeprecationErrorHandler() : mixed