function Drush_TestCase::file_aliases

4.x drush_testcase.inc Drush_TestCase::file_aliases($aliases)
5 calls to Drush_TestCase::file_aliases()
archiveDumpCase::testArchiveDump in tests/archiveDumpTest.php
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.
coreCase::testCoreCLI in tests/coreTest.php
Drush_TestCase::setUpDrupal in tests/drush_testcase.inc
siteUpgradeCase::testUpgrade in tests/siteUpgradeTest.php

File

tests/drush_testcase.inc, line 253

Class

Drush_TestCase

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;
}