Преглед на файлове

[InstallerTest] Fixed return status was always 0

Pascal Borreli преди 13 години
родител
ревизия
87bac43b9e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tests/Composer/Test/InstallerTest.php

+ 2 - 2
tests/Composer/Test/InstallerTest.php

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