4 * Discover key directories for the System-Under-Test. Used by Unish launcher
5 * scripts and by \Unish\UnishTestCase::__construct.
10 function unishGetPaths()
12 $unish_tmp = getenv('UNISH_TMP') ?: sys_get_temp_dir();
14 $unish_tmp = realpath($unish_tmp);
15 $unish_sandbox = $unish_tmp . DIRECTORY_SEPARATOR . 'drush-sandbox';
16 $unish_drush_dir = dirname($unish_sandbox) . '/drush-sut/vendor/drush/drush';
17 return [$unish_tmp, $unish_sandbox, $unish_drush_dir];
20 function unishIsVerbose()
23 foreach (['-v','-vv','-vvv','--verbose', '--debug', '-d', '-dv'] as $needle) {
24 if (in_array($needle, $_SERVER['argv'])) {