Extends
lithium\test\Unit
Tests resetting the `Environment` class to its default state.
Returns
voidSource
public function testReset() {
Environment::set('test', array('foo' => 'bar'));
Environment::set('test');
$this->assertEqual('test', Environment::get());
$this->assertEqual('bar', Environment::get('foo'));
Environment::reset();
$this->assertEqual('', Environment::get());
$this->assertNull(Environment::get('foo'));
}