src/Mock/Config/MockSettings.php
public static function setSettings($package, $settingPath, $settingValue ){
    	
    	//load the settings for this package , if they are not loaded 
    	parent::getSettings($package);
    	
    	$settingPaths = self::getPaths(preg_replace('/\/|\\\\/', ".", $package).".".$settingPath);
    	
    	$settingsCache = SettingsCache::getInstance();
    	
    	$currentSettings = $settingsCache->getData("");
    	
    	$currentSettingsForProvidedPath = &$currentSettings;
    	foreach ($settingPaths as $settingPath_){
    		if(!isset($currentSettingsForProvidedPath[$settingPath_])){
    			$currentSettingsForProvidedPath[$settingPath_] = array();
    		}
    		$currentSettingsForProvidedPath = &$currentSettingsForProvidedPath[$settingPath_];
    	}
    	
    	$currentSettingsForProvidedPath = $settingValue;
    	
    	$settingsCache->setData($currentSettings);

    }
public static function setSettings($package, $settingPath, $settingValue ){
    	
    	//load the settings for this package , if they are not loaded 
    	parent::getSettings($package);
    	
    	$settingPaths = self::getPaths(preg_replace('/\/|\\\\/', ".", $package).".".$settingPath);
    	
    	$settingsCache = SettingsCache::getInstance();
    	
    	$currentSettings = $settingsCache->getData("");
    	
    	$currentSettingsForProvidedPath = &$currentSettings;
    	foreach ($settingPaths as $settingPath_){
    		if(!isset($currentSettingsForProvidedPath[$settingPath_])){
    			$currentSettingsForProvidedPath[$settingPath_] = array();
    		}
    		$currentSettingsForProvidedPath = &$currentSettingsForProvidedPath[$settingPath_];
    	}
    	
    	$currentSettingsForProvidedPath = $settingValue;
    	
    	$settingsCache->setData($currentSettings);

    }
This methods sets new value $settingValue for provided $settingPath,

This value is retained till the next call of SettingsCache::reset();

@param string $package
@param string $settingPath
@param mixed $settingValue