1
0
Fork 0

Move test file parsing into try/catch block to avoid phpunit swallowing errors

pull/8401/head
Nils Adermann 2019-10-29 23:08:03 +01:00
parent 99e23d5263
commit 6a335a459c
1 changed files with 8 additions and 8 deletions

View File

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