lithium\tests\cases\core\EnvironmentTest::testCreateNonStandardEnvironment PHP Метод

testCreateNonStandardEnvironment() публичный Метод

Tests creating a custom environment, and verifies that settings are properly retrieved.
    public function testCreateNonStandardEnvironment()
    {
        Environment::set('custom', array('host' => 'server.local'));
        Environment::set('custom');
        $host = Environment::get('host');
        $expected = 'server.local';
        $this->assertEqual($expected, $host);
        $custom = Environment::get('custom');
        $expected = array('host' => 'server.local');
        $this->assertEqual($expected, $custom);
    }