mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Package options must be a non mandatory array and should be loaded when
exists
This commit is contained in:
parent
28d0e08785
commit
8630aab93f
4 changed files with 16 additions and 0 deletions
|
@ -143,6 +143,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'bin/foo',
|
||||
'bin/bar',
|
||||
),
|
||||
'options' => array('ssl' => array('local_cert' => '/opt/certs/test.pem'))
|
||||
),
|
||||
),
|
||||
array( // test as array
|
||||
|
@ -256,6 +257,15 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'autoload : invalid value (psr0), must be one of psr-0, classmap, files'
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'foo/bar',
|
||||
'options' => 'test',
|
||||
),
|
||||
array(
|
||||
'options : should be an array, string given'
|
||||
)
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue