1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Merge branch '1.9'

* 1.9:
  Move test file parsing into try/catch block to avoid phpunit swallowing errors
This commit is contained in:
Nils Adermann 2019-10-29 23:09:53 +01:00
commit 0873c4099b

View file

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