public function tearDown() { if (file_exists($this->logFile)) { unlink($this->logFile); } parent::tearDown(); }
public function tearDown() { foreach (new \DirectoryIterator($this->sessionPath) as $file) { if (!$file->isDot()) { unlink($file->getPathname()); } } rmdir($this->sessionPath); parent::tearDown(); }