public function tearDown() { parent::tearDown(); $files = new Filesystem(); if ($files->exists($this->destination)) { $files->remove($this->destination); } }
public function tearDown() { parent::tearDown(); if ($this->filesystem->exists($this->full_path)) { $this->filesystem->remove($this->full_path); } $this->full_path_updated = "/tmp/testUpdate/"; if ($this->filesystem->exists($this->full_path_updated)) { $this->filesystem->chmod($this->full_path_updated, $mode = 0777, $umask = 00, TRUE); $this->filesystem->remove($this->full_path_updated); } if ($this->filesystem->exists($this->full_path_delete)) { $this->filesystem->chmod($this->full_path_delete, $mode = 0777, $umask = 00, TRUE); $this->filesystem->remove($this->full_path_delete); } if ($this->filesystem->exists($this->full_path_create)) { $this->filesystem->chmod($this->full_path_create, $mode = 0777, $umask = 00, TRUE); $this->filesystem->remove($this->full_path_create); } }