class DeprecationErrorHandler
Catch deprecation notices and print a summary report at the end of the test suite.
MODE_WEAK |
static | register(int|string|false $mode) Registers and configures the deprecation handler. |
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 deprecation message matches the given regular expression; - use a number to define the upper bound of allowed deprecations, making the test suite fail whenever more notices are trigerred.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.html