@@ -222,11 +222,11 @@ describe('Tools tests', () => {
222222 } ) ;
223223
224224 it . each `
225- os | script | scope
226- ${ 'linux' } | ${ 'add_composertool tool tool:1.2.3 user/ global' } | ${ 'global' }
227- ${ 'darwin' } | ${ 'add_composertool tool tool:1.2.3 user/ scoped' } | ${ 'scoped' }
228- ${ 'win32' } | ${ 'Add-Composertool tool tool:1.2.3 user/ scoped' } | ${ 'scoped' }
229- ${ 'openbsd' } | ${ 'Platform openbsd is not supported' } | ${ 'global' }
225+ os | script | scope
226+ ${ 'linux' } | ${ 'add_composer_tool tool tool:1.2.3 user/ global' } | ${ 'global' }
227+ ${ 'darwin' } | ${ 'add_composer_tool tool tool:1.2.3 user/ scoped' } | ${ 'scoped' }
228+ ${ 'win32' } | ${ 'Add-ComposerTool tool tool:1.2.3 user/ scoped' } | ${ 'scoped' }
229+ ${ 'openbsd' } | ${ 'Platform openbsd is not supported' } | ${ 'global' }
230230 ` ( 'checking addPackage: $os, $scope' , async ( { os, script, scope} ) => {
231231 const data = getData ( {
232232 tool : 'tool' ,
@@ -380,27 +380,27 @@ describe('Tools tests', () => {
380380 'add_tool https://get.blackfire.io/blackfire-player-v1.22.0.phar blackfire-player "-V"' ,
381381 'add_tool https://github.com/bmitch/churn-php/releases/latest/download/churn.phar churn "-V"' ,
382382 'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/latest/download/cs2pr cs2pr "-V"' ,
383- 'add_composertool flex flex symfony/ global' ,
383+ 'add_composer_tool flex flex symfony/ global' ,
384384 'add_grpc_php_plugin latest' ,
385385 'add_tool https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/latest/download/parallel-lint.phar parallel-lint "--version"' ,
386386 'add_tool https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.2.1/php-cs-fixer.phar php-cs-fixer "-V"' ,
387387 'add_tool https://github.com/phpDocumentor/phpDocumentor/releases/latest/download/phpDocumentor.phar phpDocumentor "--version"' ,
388- 'add_composertool phplint phplint overtrue/' ,
388+ 'add_composer_tool phplint phplint overtrue/' ,
389389 'add_tool https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar phpstan "-V"' ,
390390 'add_tool https://phar.phpunit.de/phpunit.phar phpunit "--version"' ,
391391 'add_pecl' ,
392392 'add_tool https://www.phing.info/get/phing-latest.phar phing "-v"' ,
393- 'add_composertool phinx phinx robmorgan/ scoped' ,
394- 'add_composertool phinx phinx:1.2.3 robmorgan/ scoped' ,
393+ 'add_composer_tool phinx phinx robmorgan/ scoped' ,
394+ 'add_composer_tool phinx phinx:1.2.3 robmorgan/ scoped' ,
395395 'add_tool https://github.com/phar-io/phive/releases/download/3.2.1/phive-3.2.1.phar phive "status"' ,
396- 'add_composertool phpunit-bridge phpunit-bridge symfony/ global' ,
397- 'add_composertool phpunit-polyfills phpunit-polyfills yoast/ global' ,
396+ 'add_composer_tool phpunit-bridge phpunit-bridge symfony/ global' ,
397+ 'add_composer_tool phpunit-polyfills phpunit-polyfills yoast/ global' ,
398398 'add_tool https://github.com/laravel/pint/releases/latest/download/pint.phar pint "-V"' ,
399399 'add_devtools php-config' ,
400400 'add_devtools phpize' ,
401401 'add_protoc latest' ,
402402 'add_symfony latest' ,
403- 'add_composertool vapor-cli vapor-cli laravel/ scoped' ,
403+ 'add_composer_tool vapor-cli vapor-cli laravel/ scoped' ,
404404 'add_tool https://github.com/wp-cli/builds/blob/gh-pages/phar/wp-cli.phar?raw=true wp-cli "--version"'
405405 ]
406406 ]
@@ -416,21 +416,21 @@ describe('Tools tests', () => {
416416 'behat, blackfire, blackfire-player, churn, composer-normalize, composer-require-checker, composer-unused, cs2pr:1.2.3, flex, grpc_php_plugin:1.2.3, infection, phan, phan:1.2.3, phing:1.2.3, phinx, phive:1.2.3, php-config, phpcbf, phpcpd, phpcs, phpdoc, phpize, phpmd, phpspec, phpunit-bridge:5.6, phpunit-polyfills:1.0.1, protoc:v1.2.3, psalm, rector, symfony-cli, vapor-cli, wp-cli' ,
417417 [
418418 'add_tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-7.4-stable.phar,https://dl.cloudsmith.io/public/shivammathur/composer-cache/raw/files/composer-7.4-stable.phar,https://getcomposer.org/composer-stable.phar composer' ,
419- 'add_composertool behat behat behat/ scoped' ,
419+ 'add_composer_tool behat behat behat/ scoped' ,
420420 'add_blackfire' ,
421421 'add_tool https://get.blackfire.io/blackfire-player-v1.22.0.phar blackfire-player "-V"' ,
422422 'add_tool https://github.com/bmitch/churn-php/releases/latest/download/churn.phar churn "-V"' ,
423423 'add_tool https://github.com/ergebnis/composer-normalize/releases/latest/download/composer-normalize.phar composer-normalize "-V"' ,
424- 'add_composertool composer-require-checker composer-require-checker maglnet/ scoped' ,
424+ 'add_composer_tool composer-require-checker composer-require-checker maglnet/ scoped' ,
425425 'add_tool https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar composer-unused "-V"' ,
426426 'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr "-V"' ,
427- 'add_composertool flex flex symfony/ global' ,
427+ 'add_composer_tool flex flex symfony/ global' ,
428428 'add_grpc_php_plugin 1.2.3' ,
429429 'add_tool https://github.com/infection/infection/releases/latest/download/infection.phar infection "-V"' ,
430430 'add_tool https://github.com/phan/phan/releases/latest/download/phan.phar phan "-v"' ,
431431 'add_tool https://github.com/phan/phan/releases/download/1.2.3/phan.phar phan "-v"' ,
432432 'add_tool https://www.phing.info/get/phing-1.2.3.phar,https://github.com/phingofficial/phing/releases/download/1.2.3/phing-1.2.3.phar phing "-v"' ,
433- 'add_composertool phinx phinx robmorgan/ scoped' ,
433+ 'add_composer_tool phinx phinx robmorgan/ scoped' ,
434434 'add_tool https://github.com/phar-io/phive/releases/download/1.2.3/phive-1.2.3.phar phive' ,
435435 'add_devtools php-config' ,
436436 'add_tool https://github.com/squizlabs/PHP_CodeSniffer/releases/latest/download/phpcbf.phar phpcbf "--version"' ,
@@ -440,13 +440,13 @@ describe('Tools tests', () => {
440440 'add_devtools phpize' ,
441441 'add_tool https://github.com/phpmd/phpmd/releases/latest/download/phpmd.phar phpmd "--version"' ,
442442 'add_tool https://github.com/phpspec/phpspec/releases/latest/download/phpspec.phar phpspec "-V"' ,
443- 'add_composertool phpunit-bridge phpunit-bridge:5.6.* symfony/ global' ,
444- 'add_composertool phpunit-polyfills phpunit-polyfills:1.0.1 yoast/ global' ,
443+ 'add_composer_tool phpunit-bridge phpunit-bridge:5.6.* symfony/ global' ,
444+ 'add_composer_tool phpunit-polyfills phpunit-polyfills:1.0.1 yoast/ global' ,
445445 'add_protoc 1.2.3' ,
446446 'add_tool https://github.com/vimeo/psalm/releases/latest/download/psalm.phar psalm "-v"' ,
447- 'add_composertool rector rector rector/ scoped' ,
447+ 'add_composer_tool rector rector rector/ scoped' ,
448448 'add_symfony latest' ,
449- 'add_composertool vapor-cli vapor-cli laravel/ scoped' ,
449+ 'add_composer_tool vapor-cli vapor-cli laravel/ scoped' ,
450450 'add_tool https://github.com/wp-cli/builds/blob/gh-pages/phar/wp-cli.phar?raw=true wp-cli "--version"'
451451 ]
452452 ]
@@ -468,13 +468,13 @@ describe('Tools tests', () => {
468468 'Add-Tool https://github.com/bmitch/churn-php/releases/latest/download/churn.phar churn "-V"' ,
469469 'Add-Tool https://deployer.org/deployer.phar deployer "-V"' ,
470470 'Tool does_not_exist is not supported' ,
471- 'Add-Composertool flex flex symfony/ global' ,
472- 'Add-Composertool phinx phinx robmorgan/ scoped' ,
471+ 'Add-ComposerTool flex flex symfony/ global' ,
472+ 'Add-ComposerTool phinx phinx robmorgan/ scoped' ,
473473 'Add-Tool https://github.com/phar-io/phive/releases/download/0.13.2/phive-0.13.2.phar phive "status"' ,
474474 'php-config is not a windows tool' ,
475475 'phpize is not a windows tool' ,
476476 'Add-Tool https://github.com/phpmd/phpmd/releases/latest/download/phpmd.phar phpmd "--version"' ,
477- 'Add-Composertool phpunit-bridge phpunit-bridge symfony/ global' ,
477+ 'Add-ComposerTool phpunit-bridge phpunit-bridge symfony/ global' ,
478478 'Add-Symfony' ,
479479 'Add-Tool https://github.com/wp-cli/builds/blob/gh-pages/phar/wp-cli.phar?raw=true wp-cli "--version"'
480480 ]
@@ -491,13 +491,13 @@ describe('Tools tests', () => {
491491 'composer:v1, codeception/codeception, prestissimo, hirak/prestissimo, composer-prefetcher, narrowspark/automatic-composer-prefetcher, phinx: 1.2, robmorgan/phinx: ^1.2, user/tool:1.2.3, user/tool:~1.2' ,
492492 [
493493 'Add-Tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-7.4-1.phar,https://dl.cloudsmith.io/public/shivammathur/composer-cache/raw/files/composer-7.4-1.phar,https://getcomposer.org/composer-1.phar composer' ,
494- 'Add-Composertool codeception codeception codeception/ global' ,
495- 'Add-Composertool prestissimo prestissimo hirak/ global' ,
496- 'Add-Composertool automatic-composer-prefetcher automatic-composer-prefetcher narrowspark/ global' ,
497- 'Add-Composertool phinx phinx:1.2.* robmorgan/ scoped' ,
498- 'Add-Composertool phinx phinx:^1.2 robmorgan/ global' ,
499- 'Add-Composertool tool tool:1.2.3 user/ global' ,
500- 'Add-Composertool tool tool:~1.2 user/ global'
494+ 'Add-ComposerTool codeception codeception codeception/ global' ,
495+ 'Add-ComposerTool prestissimo prestissimo hirak/ global' ,
496+ 'Add-ComposerTool automatic-composer-prefetcher automatic-composer-prefetcher narrowspark/ global' ,
497+ 'Add-ComposerTool phinx phinx:1.2.* robmorgan/ scoped' ,
498+ 'Add-ComposerTool phinx phinx:^1.2 robmorgan/ global' ,
499+ 'Add-ComposerTool tool tool:1.2.3 user/ global' ,
500+ 'Add-ComposerTool tool tool:~1.2 user/ global'
501501 ]
502502 ]
503503 ] ) (
0 commit comments