mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Error out on recursive links in validating loader and ignore them in regular loader
This commit is contained in:
parent
bd4d624cc7
commit
b09a39f9c8
4 changed files with 21 additions and 1 deletions
|
@ -354,6 +354,15 @@ class ValidatingArrayLoaderTest extends TestCase
|
|||
'source.url : must not start with a "-", "--foo" given',
|
||||
),
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'foo/bar',
|
||||
'require' => array('foo/Bar' => '1.*'),
|
||||
),
|
||||
array(
|
||||
'require.foo/Bar : a package cannot set a require on itself',
|
||||
),
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue