mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +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:
commit
0873c4099b
1 changed files with 8 additions and 8 deletions
|
@ -283,6 +283,7 @@ class InstallerTest extends TestCase
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
$testData = $this->readTestFile($file, $fixturesDir);
|
$testData = $this->readTestFile($file, $fixturesDir);
|
||||||
|
|
||||||
$installed = array();
|
$installed = array();
|
||||||
|
@ -291,7 +292,6 @@ class InstallerTest extends TestCase
|
||||||
$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…
Add table
Add a link
Reference in a new issue