DeprecationErrorHandler

DeprecationErrorHandler

class DeprecationErrorHandler

Catch deprecation notices and print a summary report at the end of the test suite.

Constants

MODE_WEAK
MODE_DISABLED

Methods

static register(int|string|false $mode)

Registers and configures the deprecation handler.

Details

static register(int|string|false $mode)

Registers and configures the deprecation handler.

The following reporting modes are supported: - use "weak" to hide the deprecation report but keep a global count; - use "/some-regexp/" to stop the test suite whenever a d