composer.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "mockery/mockery",
  3. "description": "Mockery is a simple yet flexible PHP mock object framework",
  4. "license": "BSD-3-Clause",
  5. "type": "library",
  6. "keywords": [
  7. "bdd",
  8. "library",
  9. "mock",
  10. "mock objects",
  11. "mockery",
  12. "stub",
  13. "tdd",
  14. "test",
  15. "test double",
  16. "testing"
  17. ],
  18. "authors": [
  19. {
  20. "name": "Pádraic Brady",
  21. "email": "padraic.brady@gmail.com",
  22. "homepage": "https://github.com/padraic",
  23. "role": "Author"
  24. },
  25. {
  26. "name": "Dave Marshall",
  27. "email": "dave.marshall@atstsolutions.co.uk",
  28. "homepage": "https://davedevelopment.co.uk",
  29. "role": "Developer"
  30. },
  31. {
  32. "name": "Nathanael Esayeas",
  33. "email": "nathanael.esayeas@protonmail.com",
  34. "homepage": "https://github.com/ghostwriter",
  35. "role": "Lead Developer"
  36. }
  37. ],
  38. "homepage": "https://github.com/mockery/mockery",
  39. "support": {
  40. "issues": "https://github.com/mockery/mockery/issues",
  41. "source": "https://github.com/mockery/mockery",
  42. "docs": "https://docs.mockery.io/",
  43. "rss": "https://github.com/mockery/mockery/releases.atom",
  44. "security": "https://github.com/mockery/mockery/security/advisories"
  45. },
  46. "require": {
  47. "php": ">=7.3",
  48. "lib-pcre": ">=7.0",
  49. "hamcrest/hamcrest-php": "^2.0.1"
  50. },
  51. "require-dev": {
  52. "phpunit/phpunit": "^8.5 || ^9.6.17",
  53. "symplify/easy-coding-standard": "^12.1.14"
  54. },
  55. "conflict": {
  56. "phpunit/phpunit": "<8.0"
  57. },
  58. "autoload": {
  59. "psr-4": {
  60. "Mockery\\": "library/Mockery"
  61. },
  62. "files": [
  63. "library/helpers.php",
  64. "library/Mockery.php"
  65. ]
  66. },
  67. "autoload-dev": {
  68. "psr-4": {
  69. "Fixture\\": "tests/Fixture/",
  70. "Mockery\\Tests\\Unit\\": "tests/Unit",
  71. "test\\": "tests/"
  72. },
  73. "files": [
  74. "fixtures/autoload.php",
  75. "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
  76. ]
  77. },
  78. "config": {
  79. "optimize-autoloader": true,
  80. "platform": {
  81. "php": "7.3.999"
  82. },
  83. "preferred-install": "dist",
  84. "sort-packages": true
  85. },
  86. "scripts": {
  87. "check": [
  88. "@composer validate",
  89. "@ecs",
  90. "@test"
  91. ],
  92. "docs": "vendor/bin/phpdoc -d library -t docs/api",
  93. "ecs": [
  94. "@ecs:fix",
  95. "@ecs:check"
  96. ],
  97. "ecs:check": "ecs check --clear-cache || true",
  98. "ecs:fix": "ecs check --clear-cache --fix",
  99. "phive": [
  100. "tools/phive update --force-accept-unsigned",
  101. "tools/phive purge"
  102. ],
  103. "phpunit": "vendor/bin/phpunit --do-not-cache-result --colors=always",
  104. "phpunit:coverage": "@phpunit --coverage-clover=coverage.xml",
  105. "psalm": "tools/psalm --no-cache --show-info=true",
  106. "psalm:alter": "tools/psalm --no-cache --alter --allow-backwards-incompatible-changes=false --safe-types",
  107. "psalm:baseline": "@psalm --no-diff --set-baseline=psalm-baseline.xml",
  108. "psalm:dry-run": "@psalm:alter --issues=all --dry-run",
  109. "psalm:fix": "@psalm:alter --issues=UnnecessaryVarAnnotation,MissingPureAnnotation,MissingImmutableAnnotation",
  110. "psalm:security": "@psalm --no-diff --taint-analysis",
  111. "psalm:shepherd": "@psalm --no-diff --shepherd --stats --output-format=github",
  112. "test": [
  113. "@phpunit --stop-on-defect",
  114. "@psalm",
  115. "@psalm:security",
  116. "@psalm:dry-run"
  117. ]
  118. }
  119. }