public function symlink(\Codeception\Event\SuiteEvent $e) { $rootFolder = $this->getRootFolder(); $destination = $this->getDestination($rootFolder, $e->getSettings()); try { if (!$this->filesystem->file_exists($destination)) { $this->filesystem->symlink($rootFolder, $destination, true); $this->writeln('Symbolically linked plugin folder [' . $destination . ']'); } } catch (IOException $e) { throw new ExtensionException(__CLASS__, "Error while trying to symlink plugin or theme to destination.\n\n" . $e->getMessage()); } }