Exemple #1
0
 public function tearDown()
 {
     // remove test files
     foreach ($this->filesToDeleteAtTearDown as $filePath) {
         DirectoryHelper::removeFile($filePath);
     }
     // remove test directories
     foreach ($this->directoriesToDeleteAtTearDown as $directory) {
         DirectoryHelper::removeRecursiv($directory);
     }
     parent::tearDown();
 }
Exemple #2
0
 protected function tearDown()
 {
     if ($this->fakedImportFileToDelete !== null) {
         DirectoryHelper::removeFile($this->fakedImportFileToDelete);
     }
     if ($this->importUnzipDirectoryToDelete !== null) {
         $config = Registry::getConfig();
         $testImportDirectory = $config->import->directory;
         DirectoryHelper::removeRecursiv($this->importUnzipDirectoryToDelete, $testImportDirectory);
     }
     parent::tearDown();
 }