mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
[InstallerTest] Fixed return status was always 0
This commit is contained in:
parent
65e95ed796
commit
87bac43b9e
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ class InstallerTest extends TestCase
|
|||
$application->get('install')->setCode(function ($input, $output) use ($installer) {
|
||||
$installer->setDevMode($input->getOption('dev'));
|
||||
|
||||
return $installer->run();
|
||||
return $installer->run() ? 0 : 1;
|
||||
});
|
||||
|
||||
$application->get('update')->setCode(function ($input, $output) use ($installer) {
|
||||
|
@ -206,7 +206,7 @@ class InstallerTest extends TestCase
|
|||
->setUpdate(true)
|
||||
->setUpdateWhitelist($input->getArgument('packages'));
|
||||
|
||||
return $installer->run();
|
||||
return $installer->run() ? 0 : 1;
|
||||
});
|
||||
|
||||
if (!preg_match('{^(install|update)\b}', $run)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue