public function setup() { // easier to do this here than as a property, since we use functions. $this->_config = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m'))); parent::setup(); @unlink($this->_config['adapters'][0]['file']); @unlink($this->_config['adapters'][1]['file']); }
protected function _preConfig() { $file = Solar_File::tmp('test_solar_log_adapter_file.log'); $this->_Test_Solar_Log_Adapter_File['file'] = $file; }
public function setup() { $this->_config['file'] = Solar_File::tmp('test_solar_log_adapter_file.log'); parent::setup(); @unlink($this->_config['file']); }
protected function _preConfig() { // easier to do this here than as a property, since we use functions. $this->_Test_Solar_Log_Adapter_Multi = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m'))); }