protected function tearDown() { //TestsHelpers::cleanAllLogs(); foreach ($this->testFiles as $testFile) { $originalFile = $this->localFeedDir . "/" . $testFile; $archivedFile = $this->localFeedDir . "/processed/" . date("Y/m/d") . "/" . $testFile; $remoteFile = $this->remoteFeedDir . "/" . $testFile; @rename($archivedFile, $originalFile); @unlink($remoteFile); } TestsHelpers::delTreeUntil($this->localFeedDir . "/processed/" . date("Y/m/d"), "products"); }
protected function tearDown() { TestsHelpers::cleanAllLogs(); $archiveDir = "processed/" . date("Y/m/d"); foreach ($this->testFiles as $testfile) { $localArchiveFile = $this->localFeedDir . "/" . $archiveDir . "/" . $testfile; $localFile = $this->localFeedDir . "/" . $testfile; if (file_exists($localArchiveFile)) { rename($localArchiveFile, $localFile); } @unlink($localArchiveFile); } TestsHelpers::delTreeUntil($this->localFeedDir . "/" . $archiveDir, "processed"); }