for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SourcesTests\Files\Storage;
use kalanis\kw_auth\AuthException;
use kalanis\kw_auth\Translations;
class BasicTest extends AStorageTests
{
/**
* @throws AuthException
*/
public function testFiles(): void
$lib = new MockFiles();
$lib->setLang(new Translations());
$content = $lib->open($this->sourcePath);
$this->assertNotEmpty($content);
$lib->save($this->testingPath, $content);
chmod($this->testingPath, 0444);
$this->expectException(AuthException::class);
}
public function testFilesOpenCrash(): void
$lib = new MockFiles(new XCrashStorage());
$lib->open($this->testingPath);
public function testFilesCloseCrash(): void
$lib->save($this->testingPath, [['anything']]);