php-platform / mock-config
Installs: 2 538
Dependents: 9
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/php-platform/mock-config
Requires
- php: >=5.3
- php-platform/config: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2025-10-26 02:14:55 UTC
README
This package provides APIs to mock the configuration APIs provided by PHPPlatform/config
IMPORTANT NOTE! This package should be used only for developmental purposes and only as require-dev dependency
Usage
PhpPlatform\Mock\Config\MockSettings::setSettings($package, $settingPath, $settingValue )
where $package is package name , $settingPath is the path of the settings to be updated and $settingValue is the new value of the setting
Example
config.json in package named phpplatform/mypackage
{
"logs":{
"error":"/logs/error.log",
"debug":"/logs/debug.log"
}
}
to set logs.error to new value
PhpPlatform\Mock\Config\MockSettings::setSettings('phpplatform/mypackage','logs.error','/usr/logs/error.log');