PHP Class lithium\tests\cases\core\EnvironmentTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Méthode 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 méthode

public setUp ( )

testCreateNonStandardEnvironment() public méthode

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

testCustomDetector() public méthode

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

testDetectionWithArrayMap() public méthode

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

testDotPath() public méthode

public testDotPath ( )

testEnvironmentDetection() public méthode

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

testModifyEnvironmentConfig() public méthode

Tests modifying environment configuration.

testReadWriteWithDefaultEnvironment() public méthode

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

testResetASpecificEnv() public méthode

testResetAll() public méthode

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

testSetAndGetCurrentEnvironment() public méthode

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

testSetMultipleEnvironments() public méthode

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