function Drush_CommandTestCase::file_aliases

5.x drush_testcase.inc Drush_CommandTestCase::file_aliases($aliases)
2 calls to Drush_CommandTestCase::file_aliases()
commandSpecificCase::setUp in tests/commandSpecificTest.php
Try to write a tiny drushrc.php to each place that drush checks. Also write a sites/dev/aliases.drushrc.php file to the sandbox.
contextCase::setUp in tests/contextTest.php
Try to write a tiny drushrc.php to each place that drush checks. Also write a sites/dev/aliases.drushrc.php file to the sandbox.

File

tests/drush_testcase.inc, line 416

Class

Drush_CommandTestCase

Code

function file_aliases($aliases) {
  foreach ($aliases as $name => $alias) {
    $records[] = sprintf('$aliases[\'%s\'] = %s;', $name, var_export($alias, TRUE));
  }
  $contents = "<?php\n\n" . implode("\n\n", $records);
  return $contents;
}