Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / unish.phpunit.php
1 #!/usr/bin/env php
2 <?php
3
4 /**
5  * This script launches phpunit and points to the Site-Under-Test that's been built already.
6  */
7
8 require __DIR__. '/tests/unish.inc';
9 list($unish_tmp, $unish_sandbox, $unish_drush_dir) = unishGetPaths();
10
11 // Get the arguments for the command.
12 $arguments = $GLOBALS['argv'];
13 // Shift off argv[0] which contains the name of this script.
14 array_shift($arguments);
15 // Add the directory containing the phpunit bootstrap file.
16 array_unshift($arguments, $unish_drush_dir . '/tests');
17 $cmd = escapeshellarg(dirname($unish_sandbox) . '/drush-sut/vendor/bin/phpunit') . ' --configuration ' . implode(' ', $arguments);
18 fwrite(STDERR, 'Executing: ' . $cmd . "\n");
19 passthru($cmd, $return);
20 exit($return);