Пример #1
0
 public function tearDown()
 {
     if (!is_null($this->fileSource)) {
         $this->fileSource->delete();
     } else {
         throw new common_Exception('should not be null, something wrong happen during test');
     }
     helpers_File::remove($this->fsPath);
 }
Пример #2
0
 protected function tearDown()
 {
     helpers_File::remove($this->directory);
     if ($this->repository != null) {
         $directory = $this->repository->getPath();
         $this->repository->delete();
         parent::tearDown();
     } else {
         throw new common_Exception('Repository should never be null');
     }
 }