for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace StorageBasicTests;
use kalanis\kw_files\FilesException;
class FileFailTest extends AStorageTest
{
/**
* @throws FilesException
*/
public function testRead(): void
$lib = $this->getFileFailLib();
$this->expectException(FilesException::class);
$lib->readFile(['dummy2.txt']);
}
public function testSave(): void
$lib->saveFile(['extra.txt'], 'qwertzuiopasdfghjklyxcvbnm0123456789');
public function testCopy(): void
$lib->copyFile(['dummy2.txt'], ['extra1.txt']);
public function testMove(): void
$lib->moveFile(['extra1.txt'], ['extra2.txt']);
public function testDelete(): void
$lib->deleteFile(['extra2.txt']);