Extends
lithium\test\Unit
This hack is a necessary optimization until these tests are properly mocked out.
Parameters
- array $options Options for the parent class' method.
Source
public function run(array $options = array()) {
$this->_results = array();
try {
$this->skip();
} catch (Exception $e) {
$this->_handleException($e);
return $this->_results;
}
$this->_configs = Connections::config();
$result = parent::run($options);
Connections::get('lithium_mongo_test')->dropDB('lithium_test');
Connections::reset();
Connections::config($this->_configs);
return $result;
}