function _drush_unit_batch_operation

8.0.x unit.drush.inc _drush_unit_batch_operation(&$context)
6.x unit.drush.inc _drush_unit_batch_operation(&$context)
7.x unit.drush.inc _drush_unit_batch_operation(&$context)
5.x unit.drush.inc _drush_unit_batch_operation(&$context)
master unit.drush.inc _drush_unit_batch_operation(&$context)
1 string reference to '_drush_unit_batch_operation'
drush_unit_batch in tests/unit.drush.inc
Command callback.

File

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

Code

function _drush_unit_batch_operation(&$context) {
  $context['message'] = "!!! ArrayObject does its job.";

  for ($i = 0; $i < 5; $i++) {
    drush_print("Iteration $i");
  }
  $context['finished'] = 1;
}