public static function setSingletonInstance($className, t3lib_Singleton $instance) {
		self::checkInstanceClassName($className, $instance);
		self::$singletonInstances[$className] = $instance;
	}
public static function setSingletonInstance($className, t3lib_Singleton $instance) {
		self::checkInstanceClassName($className, $instance);
		self::$singletonInstances[$className] = $instance;
	}
public static function setSingletonInstance ( $ className , t3lib_Singleton $ instance ) { self :: checkInstanceClassName ( $ className , $ instance ) ; self :: $ singletonInstances [ $ className ] = $ instance ; }
Sets the instance of a singleton class to be returned by makeInstance.

If this function is called multiple times for the same $className,
makeInstance will return the last set instance.

Warning: This is a helper method for unit tests. Do not call this directly in production code!

@see makeInstance
@param string $className
the name of the class to set, must not be empty
@param t3lib_Singleton $instance
the instance to set, must be an instance of $className
@return void
Sets the instance of a singleton class to be returned by makeInstance .