6 * - Builds the site-Under-Test
9 * Supported arguments and options are the same as `phpunit`.
12 $cmd = __DIR__ . '/unish.sut.php';
13 fwrite(STDERR, 'Executing: ' . $cmd . "\n");
14 passthru($cmd, $return);
15 if ($return) exit($return);
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);