public function __construct()
 {
     $this->tmpCacheDir = @tempnam(sys_get_temp_dir(), 'zend_cache_test_');
     if (!$this->tmpCacheDir) {
         $err = error_get_last();
         $this->fail("Can't create temporary cache directory-file: {$err['message']}");
     } elseif (!@unlink($this->tmpCacheDir)) {
         $err = error_get_last();
         $this->fail("Can't remove temporary cache directory-file: {$err['message']}");
     } elseif (!@mkdir($this->tmpCacheDir, 0777)) {
         $err = error_get_last();
         $this->fail("Can't create temporary cache directory: {$err['message']}");
     }
     $this->storage = StorageFactory::adapterFactory('filesystem', ['cache_dir' => $this->tmpCacheDir]);
     parent::__construct();
 }
 public function __construct()
 {
     // instantiate the storage adapter
     $this->storage = StorageFactory::adapterFactory('memory');
     parent::__construct();
 }