2017 © Pedro Peláez
 

library mock-config

image

php-platform/mock-config

  • Thursday, January 19, 2017
  • by Raaghu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,497 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

PHP Platform Configuration mocking

This package provides APIs to mock the configuration APIs provided by PHPPlatform/config, (*1)

Build Status, (*2)

IMPORTANT NOTE! This package should be used only for developmental purposes and only as require-dev dependency, (*3)

Usage

``` PHP PhpPlatform\Mock\Config\MockSettings::setSettings($package, $settingPath, $settingValue ), (*4)

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__
``` JSON
{
    "logs":{
        "error":"/logs/error.log",
        "debug":"/logs/debug.log"
    }
}

to set logs.error to new value PHP PhpPlatform\Mock\Config\MockSettings::setSettings('phpplatform/mypackage','logs.error','/usr/logs/error.log');, (*5)

The Versions

19/01 2017

v0.1.x-dev

0.1.9999999.9999999-dev https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform

19/01 2017

dev-master

9999999-dev https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform

19/01 2017

v0.1.3

0.1.3.0 https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform

12/01 2017

v0.1.2

0.1.2.0 https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform

09/01 2017

v0.1.1

0.1.1.0 https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform

29/12 2016

v0.1.0

0.1.0.0 https://github.com/PHPPlatform/mock-config

  Sources   Download

The Requires

 

The Development Requires

mock settings config php-platform