public function setup() { clearstatcache(); $fs = new Adapter\Local(__DIR__ . '/'); $fs->deleteDir('files'); $fs->createDir('files'); }
public function testFails() { $adapter = new Adapter\Local(__DIR__ . '/files'); $this->assertFalse($adapter->write('pleasefail.txt', 'content', 'public')); $this->assertFalse($adapter->update('pleasefail.txt', 'content')); $this->assertFalse($adapter->read('pleasefail.txt')); $this->assertFalse($adapter->deleteDir('non-existing')); }
public function setup() { clearstatcache(); $fs = new Adapter\Local(__DIR__ . '/'); $fs->deleteDir('files'); $fs->createDir('files', new Config()); $fs->write('file.txt', 'contents', new Config()); $this->filesystem = new Filesystem($fs); }