for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tests\ChecksTests\TraitsTests;
use tests\CommonTestClass;
use kalanis\kw_mime\MimeException;
use kalanis\kw_storage\Storage;
use kalanis\kw_storage\StorageException;
class StorageTest extends CommonTestClass
{
/**
* @throws MimeException
* @throws StorageException
*/
public function testOwn(): void
$store = new Storage(new Storage\Factory(new Storage\Key\Factory(), new Storage\Target\Factory()));
$store->init('none');
$lib = new XStorage();
$lib->setStorage($store);
$this->assertInstanceOf(Storage::class, $lib->getStorage());
}
public function testNone(): void
$this->expectException(MimeException::class);
$lib->getStorage();