2016-01-27 09:05:10 +00:00
|
|
|
--TEST--
|
|
|
|
Tries to require a package with the same name as the root package
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"name": "foo/bar",
|
|
|
|
"require": {
|
|
|
|
"foo/bar": "@dev"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
install
|
2016-01-27 12:46:14 +00:00
|
|
|
--EXPECT-EXCEPTION--
|
2016-01-27 12:19:08 +00:00
|
|
|
InvalidArgumentException
|
|
|
|
--EXPECT--
|
2016-01-27 09:05:10 +00:00
|
|
|
Root package 'foo/bar' cannot require itself in its composer.json
|
|
|
|
Did you accidentally name your root package after an external package?
|