install-from-empty-lock.test 766 B

12345678910111213141516171819202122232425262728293031323334
  1. --TEST--
  2. Requirements from the composer file are not installed if the lock file is present
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "required/pkg", "version": "1.0.0" },
  10. { "name": "newly-required/pkg", "version": "1.0.0" }
  11. ]
  12. }
  13. ],
  14. "require": {
  15. "required/pkg": "1.0.0",
  16. "newly-required/pkg": "1.0.0"
  17. }
  18. }
  19. --LOCK--
  20. {
  21. "packages": [
  22. { "name": "required/pkg", "version": "1.0.0" }
  23. ],
  24. "packages-dev": [],
  25. "aliases": [],
  26. "minimum-stability": "stable",
  27. "stability-flags": [],
  28. "prefer-stable": false,
  29. "prefer-lowest": false
  30. }
  31. --RUN--
  32. install
  33. --EXPECT--
  34. Installing required/pkg (1.0.0)