PHP Class lithium\tests\cases\core\EnvironmentTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method Description
setUp ( )
testCreateNonStandardEnvironment ( ) Tests creating a custom environment, and verifies that settings are properly retrieved.
testCustomDetector ( ) Tests using a custom detector to get the current environment.
testDetectionWithArrayMap ( ) Tests that environment names can be mapped to lists of host names, or a hostname-matching regular expression.
testDotPath ( )
testEnvironmentDetection ( ) Tests auto-detecting environment settings through a series of mock request classes.
testModifyEnvironmentConfig ( ) Tests modifying environment configuration.
testReadWriteWithDefaultEnvironment ( ) Tests calling get() and set() with true as the envrionment name, to automatically select the current environment.
testResetASpecificEnv ( )
testResetAll ( ) Tests resetting the Environment class to its default state.
testSetAndGetCurrentEnvironment ( ) Tests setting and getting current environment, and that invalid environments cannot be selected.
testSetMultipleEnvironments ( ) Tests that a set of configuration keys can be assigned to multiple environments.

Method Details

setUp() public method

public setUp ( )

testCreateNonStandardEnvironment() public method

Tests creating a custom environment, and verifies that settings are properly retrieved.

testCustomDetector() public method

Tests using a custom detector to get the current environment.
public testCustomDetector ( )

testDetectionWithArrayMap() public method

Tests that environment names can be mapped to lists of host names, or a hostname-matching regular expression.

testDotPath() public method

public testDotPath ( )

testEnvironmentDetection() public method

Tests auto-detecting environment settings through a series of mock request classes.

testModifyEnvironmentConfig() public method

Tests modifying environment configuration.

testReadWriteWithDefaultEnvironment() public method

Tests calling get() and set() with true as the envrionment name, to automatically select the current environment.

testResetASpecificEnv() public method

testResetAll() public method

Tests resetting the Environment class to its default state.
public testResetAll ( )

testSetAndGetCurrentEnvironment() public method

Tests setting and getting current environment, and that invalid environments cannot be selected.

testSetMultipleEnvironments() public method

Tests that a set of configuration keys can be assigned to multiple environments.