PHP Класс lithium\tests\cases\core\EnvironmentTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
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.