/** * 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); }
/** * 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)); }