diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index b82cd22..0baef9a 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -13,14 +13,15 @@ * @param string $scan_directory * The directory that should be recursively scanned. * @return array - * An array of module directories found within the scanned directory. + * An associative array of module directories found within the scanned + * directory, keyed by module name. */ function drupal_phpunit_find_module_directories($scan_directory) { $module_directories = array(); $dir = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($scan_directory, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS)); foreach ($dir as $d) { if (strpos($d->getPathname(), 'info.yml') !== FALSE) { - // Cut of ".info.yml" from the filename and use that as module name. + // Cut off ".info.yml" from the filename and use that as the module name. $module_directories[substr($d->getFilename(), 0, -9)] = $d->getPathInfo()->getRealPath(); } } @@ -52,7 +53,7 @@ function drupal_phpunit_find_site_module_directories($sites_path) { * @param Composer\Autoload\ClassLoader $loader * The supplied autoloader. * @param array $dirs - * An array of module directories. + * An associative array of module directories, keyed by module name. */ function drupal_phpunit_register_module_dirs(Composer\Autoload\ClassLoader $loader, $dirs) { foreach ($dirs as $module => $dir) {