mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Improve validating array loader to avoid false positives
This commit is contained in:
parent
e7e04689f1
commit
e05391dc44
3 changed files with 9 additions and 5 deletions
|
@ -47,7 +47,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'description' => 'Foo bar',
|
||||
'version' => '1.0.0',
|
||||
'type' => 'library',
|
||||
'keywords' => array('a', 'b'),
|
||||
'keywords' => array('a', 'b_c', 'D E'),
|
||||
'homepage' => 'https://foo.com',
|
||||
'time' => '2010-10-10T10:10:10+00:00',
|
||||
'license' => 'MIT',
|
||||
|
@ -131,6 +131,10 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
),
|
||||
'extra' => array(
|
||||
'random' => array('stuff' => array('deeply' => 'nested')),
|
||||
'branch-alias' => array(
|
||||
'dev-master' => '2.0-dev',
|
||||
'dev-old' => '1.0.x-dev',
|
||||
),
|
||||
),
|
||||
'bin' => array(
|
||||
'bin/foo',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue