PHP Class PhpBench\Tests\Unit\Registry\ConfigurableRegistryTest

Inheritance: extends RegistryTest
Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
setUp ( )
testExtendsDifferentServiceException ( ) It should throw an exception if a config extends a config from a different service.
testGetConfigJsonString ( ) If a JSON encoded string is passed to getConfig, then it should be processed.
testGetConfigJsonStringInvalid ( ) If a invalid JSON encoded string is passed to getConfig, then it should throw an exception.
testGetSetConfig ( ) It should set configuration for a registered service It should retrieve configurations.
testResolveExtended ( ) It should resolve configs that exend other configs.

Method Details

setUp() public method

public setUp ( )

testExtendsDifferentServiceException() public method

It should throw an exception if a config extends a config from a different service.

testGetConfigJsonString() public method

If a JSON encoded string is passed to getConfig, then it should be processed.

testGetConfigJsonStringInvalid() public method

If a invalid JSON encoded string is passed to getConfig, then it should throw an exception.

testGetSetConfig() public method

It should set configuration for a registered service It should retrieve configurations.
public testGetSetConfig ( )

testResolveExtended() public method

It should resolve configs that exend other configs.
public testResolveExtended ( )