Пример #1
0
 /**
  * Setup before each test.
  */
 public function setUp()
 {
     parent::setUp();
     self::$backupFile = $this->tmpDir . 'test-backup.zip';
     self::$backupOptions = ['backup-file' => self::$backupFile, 'backup-type' => 'full', 'output' => ['debug' => FALSE]];
     $this->manager = new BackupManager($this->getConfig());
     $this->manager->setEventDispatcher(new EventDispatcher());
     $this->preVerified = FALSE;
     $this->postVerified = FALSE;
     if (file_exists($this->tmpDir . 'extracted')) {
         (new Filesystem())->remove([$this->tmpDir . 'extracted']);
     }
 }