/** * Reset all ephemeral system state, e.g. statics, * singletons, containers. */ public static function reset() { self::$statics = array(); Civi\Core\Container::singleton(); }