mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
This commit is contained in:
parent
b03e9e414e
commit
106149d102
4 changed files with 51 additions and 31 deletions
|
@ -548,7 +548,7 @@ class Application extends BaseApplication
|
|||
new Command\ReinstallCommand(),
|
||||
));
|
||||
|
||||
if (strpos(__FILE__, 'phar:') === 0) {
|
||||
if (strpos(__FILE__, 'phar:') === 0 || '1' === Platform::getEnv('COMPOSER_TESTS_ARE_RUNNING')) {
|
||||
$commands[] = new Command\SelfUpdateCommand();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue