/** * @return int * @param string[] $args */ public function run(array $args) { $file = $this->getApplication()->rootDir . DIRECTORY_SEPARATOR . self::FILE_NAME; if (!file_exists($file)) { $this->showHelpForFile(); return; } $dependencies = null; include $file; if (!is_array($dependencies)) { $this->showHelpForFile(); return; } chDir($this->getApplication()->rootDir); $destination = $this->checkDestinationFolder(); $this->updateDependencies($destination, $dependencies); }
protected function tearDown() { chDir($this->workingDir); unset($this->workingDir, $this->application); $this->app->restore(); }
protected function tearDown() { chDir($this->cwd); ob_end_clean(); $this->app->restore(); }