1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix error handling for incorrect "repositories" array

This commit is contained in:
Dmitry Tarasov 2015-01-20 13:03:55 +03:00
parent 2a1a963b00
commit 3b678ee379
2 changed files with 13 additions and 1 deletions

View file

@ -97,6 +97,18 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
),
);
$data['incorrect local config does not cause ErrorException'] = array(
array(
'packagist' => array('type' => 'composer', 'url' => 'https?://packagist.org', 'allow_ssl_downgrade' => true),
'type' => 'vcs',
'url' => 'http://example.com',
),
array(
'type' => 'vcs',
'url' => 'http://example.com',
),
);
return $data;
}