Parcourir la source

Merge branch '1.9'

* 1.9:
  Move test file parsing into try/catch block to avoid phpunit swallowing errors
Nils Adermann il y a 5 ans
Parent
commit
0873c4099b
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      tests/Composer/Test/InstallerTest.php

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

@@ -283,15 +283,15 @@ class InstallerTest extends TestCase
                 continue;
             }
 
-            $testData = $this->readTestFile($file, $fixturesDir);
+            try {
+                $testData = $this->readTestFile($file, $fixturesDir);
 
-            $installed = array();
-            $installedDev = array();
-            $lock = array();
-            $expectLock = array();
-            $expectResult = 0;
+                $installed = array();
+                $installedDev = array();
+                $lock = array();
+                $expectLock = array();
+                $expectResult = 0;
 
-            try {
                 $message = $testData['TEST'];
                 $condition = !empty($testData['CONDITION']) ? $testData['CONDITION'] : null;
                 $composer = JsonFile::parseJson($testData['COMPOSER']);