src/Dev/Deprecation.php
public static function restore_settings($settings)
    {
        self::$notice_level = $settings['level'];
        self::$version = $settings['version'];
        self::$module_version_overrides = $settings['moduleVersions'];
        self::$enabled = $settings['enabled'];
    }
public static function restore_settings($settings)
    {
        self::$notice_level = $settings['level'];
        self::$version = $settings['version'];
        self::$module_version_overrides = $settings['moduleVersions'];
        self::$enabled = $settings['enabled'];
    }
public static function restore_settings ( $ settings ) { self :: $ notice_level = $ settings [ 'level' ] ; self :: $ version = $ settings [ 'version' ] ; self :: $ module_version_overrides = $ settings [ 'moduleVersions' ] ; self :: $ enabled = $ settings [ 'enabled' ] ; }
Method for when testing. Restore all the current version settings from a variable

@param $settings array An array as returned by {@see Deprecation::dump_settings()}
Method for when testing . Restore all the current version settings from a variable