function UnishTestCase::log_level

8.0.x UnishTestCase.php UnishTestCase::log_level()
7.x UnishTestCase.php UnishTestCase::log_level()
master UnishTestCase.php UnishTestCase::log_level()
3 calls to UnishTestCase::log_level()
CommandUnishTestCase::drush in tests/Unish/CommandUnishTestCase.php
Invoke drush in via execute().
coreCase::testRsyncPercentFiles in tests/coreTest.php
Test to see if rsync @site:%files calculates the %files path correctly. This tests the non-optimized code path in drush_sitealias_resolve_path_references.
UnishTestCase::log in tests/Unish/UnishTestCase.php
Print a log message to the console.

File

tests/Unish/UnishTestCase.php, line 88

Namespace

Unish

Class

UnishTestCase

Code

function log_level() {
  // -d is reserved by `phpunit`
  if (in_array('--debug', $_SERVER['argv'])) {
    return 'debug';
  }
  elseif (in_array('--verbose', $_SERVER['argv']) || in_array('-v', $_SERVER['argv'])) {
    return 'verbose';
  }
}