backupscript/tests/Rclone/RcloneTest.php

18 lines
464 B
PHP
Raw Normal View History

2023-05-31 09:42:39 +00:00
<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class RcloneTest extends TestCase
{
public function testExceptionOnInvalidRclonePath(): void
{
$this->expectException(\Exception::class);
$rclone = new \App\Rclone\Rclone('invalid');
}
public function testRcloneVersion(): void
{
$rclone = new \App\Rclone\Rclone();
$this->assertStringContainsString('rclone', $rclone->getversion());
}
}