コード例 #1
0
ファイル: AbstractTest.php プロジェクト: xsolve-pl/phpmd
 /**
  * Changes the working directory for a single test.
  *
  * @param string $localPath The temporary working directory.
  *
  * @return void
  */
 protected static function changeWorkingDirectory($localPath = '')
 {
     self::$_originalWorkingDirectory = getcwd();
     if (0 === preg_match('(^([A-Z]:|/))', $localPath)) {
         $localPath = self::createFileUri($localPath);
     }
     chdir($localPath);
 }
コード例 #2
0
ファイル: AbstractTest.php プロジェクト: noelg/phpmd
 /**
  * Changes the working directory for a single test.
  *
  * @param string $localPath The temporary working directory.
  *
  * @return void
  */
 protected static function changeWorkingDirectory($localPath = '')
 {
     self::$_originalWorkingDirectory = getcwd();
     chdir(self::createFileUri($localPath));
 }