for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace StorageDirsTests;
use kalanis\kw_files\FilesException;
use kalanis\kw_paths\PathsException;
class DirFlatFailTest extends AStorageTest
{
/**
* @throws FilesException
* @throws PathsException
*/
public function testCreate(): void
$lib = $this->getDirFlatFailLib();
$this->expectException(FilesException::class);
$lib->createDir(['another'], false);
}
public function testRead(): void
$lib->readDir([''], false, true);
public function testCopy(): void
$lib->copyDir(['next_one'], ['more']);
public function testMove(): void
$lib->moveDir(['more'], ['another']);
public function testDelete(): void
$lib->deleteDir(['another'], true);