1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/install-self-from-root.test

17 lines
366 B
Plaintext
Raw Normal View History

--TEST--
Tries to require a package with the same name as the root package
--COMPOSER--
{
"name": "foo/bar",
"require": {
"foo/bar": "@dev"
}
}
--RUN--
install
--EXPECT-EXCEPTION--
2020-03-10 16:11:19 +00:00
RuntimeException
--EXPECT--
Root package 'foo/bar' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?