function unit_invoke_log

8.0.x unit.drush.inc unit_invoke_log($function = NULL)
6.x unit.drush.inc unit_invoke_log($function = NULL)
7.x unit.drush.inc unit_invoke_log($function = NULL)
4.x unit.drush.inc unit_invoke_log($function = NULL)
5.x unit.drush.inc unit_invoke_log($function = NULL)
master unit.drush.inc unit_invoke_log($function = NULL)
9 calls to unit_invoke_log()
drush_unit_invoke_init in tests/unit.drush.inc
drush_unit_invoke_primary in tests/unit.drush.inc
drush_unit_invoke_validate in tests/unit.drush.inc
drush_unit_invoke_validate_rollback in tests/unit.drush.inc
The final invoke hook. Emit the call history. Cannot use 'exit' as it does not fire in rollback scenario.
drush_unit_post_unit_invoke in tests/unit.drush.inc

... See full list

File

tests/unit.drush.inc, line 86
Commands which are useful for unit tests.

Code

function unit_invoke_log($function = NULL) {
  static $called = array();
  if ($function) {
    $called[] = $function;
  }
  else {
    return $called;
  }
}