Browse Source

Add test for warning on deprecated naming

Patrick Reimers 6 years ago
parent
commit
5d14a95543
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php

+ 12 - 0
tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php

@@ -337,6 +337,18 @@ class ValidatingArrayLoaderTest extends TestCase
                 ),
                 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(
                     'name' => 'foo/bar',