This commit is contained in:
18
tests/Rclone/RcloneTest.php
Normal file
18
tests/Rclone/RcloneTest.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user