function Drush_TestCase::log_level

6.x drush_testcase.inc Drush_TestCase::log_level()
5.x drush_testcase.inc Drush_TestCase::log_level()
3 calls to Drush_TestCase::log_level()
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.
Drush_CommandTestCase::drush in tests/drush_testcase.inc
Invoke drush in via execute().
Drush_TestCase::log in tests/drush_testcase.inc
Print a log message to the console.

File

tests/drush_testcase.inc, line 82
Initialize a sandboxed environment. Starts with call unish_init() at bottom.

Class

Drush_TestCase

Code

function log_level() {
  if (in_array('--debug', $_SERVER['argv'])) {
    return 'debug';
  }
  elseif (in_array('--verbose', $_SERVER['argv'])) {
    return 'verbose';
  }
}