public function setUp()
 {
     parent::setUp();
     self::$originalVersionInfo = Deprecation::dump_settings();
     Deprecation::$notice_level = E_USER_NOTICE;
     Deprecation::set_enabled(true);
 }
 /**
  * Method for when testing. Restore all the current version settings from a variable
  * @static
  * @param $settings array - An array as returned by ::dump_version_settings
  * @return void
  */
 public static function restore_settings($settings)
 {
     self::$notice_level = $settings['level'];
     self::$version = $settings['version'];
     self::$module_version_overrides = $settings['moduleVersions'];
 }
Beispiel #3
0
	function setUp() {
		self::$originalVersionInfo = Deprecation::dump_settings();
		Deprecation::$notice_level = E_USER_NOTICE;
	}