lithium\tests\cases\core\EnvironmentTest::testResetASpecificEnv PHP Method

testResetASpecificEnv() public method

    public function testResetASpecificEnv()
    {
        Environment::set('test', array('foo' => 'bar'));
        Environment::set('development', array('hello' => 'world'));
        Environment::set('test');
        $this->assertEqual('test', Environment::get());
        $this->assertEqual('bar', Environment::get('foo'));
        Environment::reset('test');
        $this->assertEqual('test', Environment::get());
        $this->assertNull(Environment::get('foo'));
        Environment::set('development');
        $this->assertEqual('world', Environment::get('hello'));
    }