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

main
Nils Adermann 5 years ago
parent 99e23d5263
commit 6a335a459c

@ -280,15 +280,15 @@ class InstallerTest extends TestCase
continue; continue;
} }
$testData = $this->readTestFile($file, $fixturesDir); try {
$testData = $this->readTestFile($file, $fixturesDir);
$installed = array(); $installed = array();
$installedDev = array(); $installedDev = array();
$lock = array(); $lock = array();
$expectLock = array(); $expectLock = array();
$expectResult = 0; $expectResult = 0;
try {
$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']);

Loading…
Cancel
Save