Skip to content
Snippets Groups Projects
Commit 04c46dad authored by Seamus Lee's avatar Seamus Lee
Browse files

Use PHPUnit8 for main runs

parent 20382894
Branches
Tags
No related merge requests found
......@@ -15,7 +15,17 @@ $argFilters = [];
if (PHP_SAPI !== 'cli') {
die("phpunit can only be run from command line.");
}
if (version_compare(PHP_VERSION, '7.1', '>=')) {
if (version_compare(PHP_VERSION, '7.2', '>=')) {
$phpunit = findCommand('phpunit8');
$argFilters[] = function ($argv) {
$pos = array_search('--tap', $argv);
if ($pos !== FALSE) {
array_splice($argv, $pos, 1, ['--printer', '\Civi\Test\TAP']);
}
return $argv;
};
}
elseif (version_compare(PHP_VERSION, '7.1', '>=')) {
$phpunit = findCommand('phpunit7');
$argFilters[] = function ($argv) {
$pos = array_search('--tap', $argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment