1
0
Fork 0

Add test for warning on deprecated naming

pull/8013/head
Patrick Reimers 2019-03-01 20:11:20 +01:00
parent 627a832cc1
commit 5d14a95543
No known key found for this signature in database
GPG Key ID: 6A47322A0E80596C
1 changed files with 12 additions and 0 deletions

View File

@ -337,6 +337,18 @@ class ValidatingArrayLoaderTest extends TestCase
), ),
false, false,
), ),
array(
array(
'name' => 'foo/bar',
'require' => array(
'Foo/Baz' => '^1.0',
),
),
array(
'Deprecation warning: require.Foo/Baz is invalid, it should not contain uppercase characters. Please use foo/baz instead. Make sure you fix this as Composer 2.0 will error.',
),
false,
),
array( array(
array( array(
'name' => 'foo/bar', 'name' => 'foo/bar',