public function destroy()
{
$fs = new Filesystem();
$fs->remove($this->queuePath);
$this->filePointerList = [];
return !is_dir($this->queuePath);
}
public function testDestroy() { $this->provider->destroy(); $this->assertFalse(is_dir($this->basePath . DIRECTORY_SEPARATOR . $this->queueHash)); }