Support for PHP infection testing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -15,14 +15,23 @@ final class CommandBackupTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
mkdir('temp');
|
||||
mkdir('temp/destination');
|
||||
exec('rclone test makefiles temp/source 2>&1');
|
||||
if (!is_dir('temp')) {
|
||||
mkdir('temp');
|
||||
}
|
||||
if (!is_dir('temp/destination')) {
|
||||
mkdir('temp/destination');
|
||||
}
|
||||
exec('rclone test makefiles --files 10 temp/source 2>&1');
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
exec('rclone purge temp 2>&1');
|
||||
|
||||
if (is_dir('temp/destination')) {
|
||||
rmdir('temp/destination');
|
||||
}
|
||||
|
||||
if (is_dir("temp")) {
|
||||
rmdir('temp');
|
||||
}
|
||||
|
Reference in New Issue
Block a user