1
0
Fork 0

Merge pull request #979 from pborreli/patch-1

[InstallerTest] Fixed return status was always 0
pull/975/merge
Jordi Boggiano 2012-08-09 10:24:28 -07:00
commit 35561767fa
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {