Example #1
0
 /**
  * @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);
 }
Example #2
0
 protected function tearDown()
 {
     chDir($this->workingDir);
     unset($this->workingDir, $this->application);
     $this->app->restore();
 }
Example #3
0
 protected function tearDown()
 {
     chDir($this->cwd);
     ob_end_clean();
     $this->app->restore();
 }