PHP 클래스 lithium\tests\cases\core\EnvironmentTest

상속: extends lithium\test\Unit
파일 보기 프로젝트 열기: unionofrad/lithium

공개 메소드들

메소드 설명
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.

메소드 상세

setUp() 공개 메소드

public 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.
public testCustomDetector ( )

testDetectionWithArrayMap() 공개 메소드

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

testDotPath() 공개 메소드

public 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.
public testResetAll ( )

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.