migrating tests (DatabaseUser, Firewall and Logs)

This commit is contained in:
Saeed Vaziry
2024-10-09 23:32:52 +02:00
parent 0007e6f00a
commit 93cee92568
12 changed files with 214 additions and 56 deletions

View File

@ -155,9 +155,24 @@ public function upload(string $local, string $remote): void
if (! $this->connection) {
$this->connect(true);
}
$this->connection->put($remote, $local, SFTP::SOURCE_LOCAL_FILE);
}
/**
* @throws Throwable
*/
public function download(string $local, string $remote): void
{
$this->log = null;
if (! $this->connection) {
$this->connect(true);
}
$this->connection->get($remote, $local, SFTP::SOURCE_LOCAL_FILE);
}
/**
* @throws Exception
*/