public function tearDown() { if ($this->folder->getRealPath()) { foreach ($this->getFiles() as $file) { unlink($file); } rmdir($this->folder->getRealPath()); } }