function DeprecationHandler::reset
Resets the extension.
The extension should be reset at the beginning of each test run to ensure matching of expected and actual deprecations.
1 call to DeprecationHandler::reset()
- ExpectDeprecationTrait::setUpErrorHandler in core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ ExpectDeprecationTrait.php - Sets up the test error handler.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ DeprecationHandler.php, line 134
Class
- DeprecationHandler
- Drupal's PHPUnit extension to manage code deprecation.
Namespace
Drupal\TestTools\Extension\DeprecationBridgeCode
public static function reset() : void {
if (!self::isEnabled()) {
return;
}
self::$expectedDeprecations = [];
self::$collectedDeprecations = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.