Source

						public function testEnvironmentIsSet() {
		$expected = 'production';
		$response = Dispatcher::run(new Request(array(
			'args' => array(
				'lithium\tests\mocks\console\MockDispatcherCommand',
				'testEnv', '--env=production'
			)
		)));
		$result = $response->environment;
		$this->assertEqual($expected, $result);
	}