MonitoringBackend: add clearInstances()

refs #7635
This commit is contained in:
Thomas Gelf 2014-11-11 16:57:12 +01:00
parent 6c0aa8dcc5
commit 8faf81dad5
1 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,14 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
return self::$instances[$name];
}
/**
* Clear all cached instances. Mostly for testing purposes.
*/
public static function clearInstances()
{
self::$instances = array();
}
/**
* Whether this backend is of a specific type
*