This storage is in the global scope. However the scope is limited to the
underlying filesystem. I.e. the scope is not shared between hosts.
/** * Tests deleting fails. * * @test * @expectedException bandwidthThrottle\tokenBucket\storage\StorageException */ public function testRemoveFails() { $data = new vfsStreamFile("data"); $root = vfsStream::setup('test'); $root->chmod(0); $root->addChild($data); $storage = new FileStorage(vfsStream::url("test/data")); $storage->remove(); }