diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index e8ddfca0..0a47ef0b 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -435,7 +435,7 @@ describe('Tools tests', () => { 'add_tool https://github.com/phpDocumentor/phpDocumentor/releases/latest/download/phpDocumentor.phar phpDocumentor "--version"', 'add_devtools phpize', 'add_tool https://github.com/phpmd/phpmd/releases/latest/download/phpmd.phar phpmd "--version"', - 'add_composertool phpspec phpspec phpspec/', + 'add_tool https://github.com/phpspec/phpspec/releases/latest/download/phpspec.phar phpspec "-V"', 'add_composertool phpunit-bridge phpunit-bridge:5.6.* symfony/', 'add_composertool phpunit-polyfills phpunit-polyfills:1.0.1 yoast/', 'add_protoc 1.2.3', diff --git a/src/configs/tools.json b/src/configs/tools.json index 583fc275..43c75820 100644 --- a/src/configs/tools.json +++ b/src/configs/tools.json @@ -81,6 +81,14 @@ "version_prefix": "", "version_parameter": "--version" }, + "phpspec": { + "type": "phar", + "repository": "phpspec/phpspec", + "extension": ".phar", + "domain": "https://github.com", + "version_prefix": "", + "version_parameter": "-V" + }, "phpstan": { "type": "phar", "repository": "phpstan/phpstan", @@ -130,10 +138,6 @@ "type": "composer", "repository": "overtrue/phplint" }, - "phpspec": { - "type": "composer", - "repository": "phpspec/phpspec" - }, "phpunit-bridge": { "alias": "simple-phpunit", "type": "composer",