webroot(); $fileSystem = new Filesystem(); foreach ($modules as $module) { $sourceDir = Path::join($sourcePath, $module); $this->assertFileExists($sourceDir); $targetDir = Path::join($webRoot, "modules/unish/$module"); $fileSystem->mkdir($targetDir); $this->recursiveCopy($sourceDir, $targetDir); } } }