protected function setLogFiles() { $dataStoreConfig = $this->container->get('config')['dataStore']; if (!$this->fileManager->has($dataStoreConfig['hop_log_datastore']['filename'])) { $this->fileManager->create($dataStoreConfig['hop_log_datastore']['filename'], ['id', 'hop_start', 'ttl']); } if (!$this->fileManager->has($dataStoreConfig['tick_log_datastore']['filename'])) { $this->fileManager->create($dataStoreConfig['tick_log_datastore']['filename'], ['id', 'tick_id', 'step']); } /*// Create log files if they do not exist if (!is_file($dataStoreConfig['hop_log_datastore']['filename'])) { copy( $dataStoreConfig['hop_log_datastore']['filename'] . '.dist', $dataStoreConfig['hop_log_datastore']['filename'] ); } if (!is_file($dataStoreConfig['tick_log_datastore']['filename'])) { copy( $dataStoreConfig['tick_log_datastore']['filename'] . '.dist', $dataStoreConfig['tick_log_datastore']['filename'] ); }*/ }
public function test_has() { $this->assertFalse($this->fileManager->has($this->filename)); }