/** * Allows clear factory instance for test. DO NOT USE IT IN PRODUCTION! */ public static function clearInstance() { self::$_instance = null; }