7ec7174f031f8fea7e1bab66d979cf0cf916c811
[yaffs-website] / vendor / drush / drush / unish.clean.php
1 #!/usr/bin/env php
2 <?php
3
4 /**
5  * This script:
6  *   - Builds the site-Under-Test
7  *   - Runs phpunit.
8  *
9  * Supported arguments and options are the same as `phpunit`.
10  */
11
12 $cmd = __DIR__ . '/unish.sut.php';
13 fwrite(STDERR, 'Executing: ' . $cmd . "\n");
14 passthru($cmd, $return);
15 if ($return) exit($return);
16
17 // Get the arguments for the command.
18 $arguments = $GLOBALS['argv'];
19 // Shift off argv[0] which contains the name of this script.
20 array_shift($arguments);
21 $cmd = __DIR__ . '/unish.phpunit.php ' . implode(' ', $arguments);
22 fwrite(STDERR, 'Executing: ' . $cmd . "\n");
23 passthru($cmd, $return);
24 if ($return) exit($return);