コード例 #1
0
ファイル: dependencies.php プロジェクト: visor/nano
 /**
  * @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);
 }
コード例 #2
0
ファイル: Abstract.php プロジェクト: visor/nano
 protected function tearDown()
 {
     chDir($this->workingDir);
     unset($this->workingDir, $this->application);
     $this->app->restore();
 }
コード例 #3
0
ファイル: ScriptInfoTest.php プロジェクト: visor/nano
 protected function tearDown()
 {
     chDir($this->cwd);
     ob_end_clean();
     $this->app->restore();
 }