summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-06-06 08:58:26 +0200
committerRemi Collet <remi@php.net>2023-06-06 08:58:26 +0200
commit8c213e6bb50d1c4055c378af4fa1d23ff661983f (patch)
tree06b3aa78d535857d9704eed34a2f2977015f0749 /composer.json
parentbc072a7a07a32d8eac956a96e29c0080e281a660 (diff)
update to 1.6.1
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json57
1 files changed, 46 insertions, 11 deletions
diff --git a/composer.json b/composer.json
index 43caba8..d1382d5 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,7 @@
{
"name": "mockery/mockery",
"description": "Mockery is a simple yet flexible PHP mock object framework",
- "scripts": {
- "docs": "phpdoc -d library -t docs/api"
- },
+ "license": "BSD-3-Clause",
"keywords": [
"bdd",
"library",
@@ -16,8 +14,6 @@
"test double",
"testing"
],
- "homepage": "https://github.com/mockery/mockery",
- "license": "BSD-3-Clause",
"authors": [
{
"name": "Pádraic Brady",
@@ -30,26 +26,36 @@
"homepage": "http://davedevelopment.co.uk"
}
],
+ "homepage": "https://github.com/mockery/mockery",
"require": {
- "php": "^7.3 || ^8.0",
+ "php": "^7.4 || ^8.0",
"lib-pcre": ">=7.0",
"hamcrest/hamcrest-php": "^2.0.1"
},
"require-dev": {
- "phpunit/phpunit": "^8.5 || ^9.3"
+ "phpunit/phpunit": "^8.5 || ^9.3",
+ "psalm/plugin-phpunit": "^0.18",
+ "vimeo/psalm": "^5.9"
},
"conflict": {
"phpunit/phpunit": "<8.0"
},
"autoload": {
- "psr-0": {
- "Mockery": "library/"
- }
+ "psr-4": {
+ "Mockery\\": "library/Mockery"
+ },
+ "files": [
+ "library/helpers.php",
+ "library/Mockery.php"
+ ]
},
"autoload-dev": {
"psr-4": {
"test\\": "tests/"
- }
+ },
+ "files": [
+ "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
+ ]
},
"config": {
"preferred-install": "dist"
@@ -58,5 +64,34 @@
"branch-alias": {
"dev-master": "1.4.x-dev"
}
+ },
+ "scripts": {
+ "check": [
+ "@composer validate",
+ "@test",
+ "@psalm:security",
+ "@psalm:dry-run"
+ ],
+ "docs": "phpdoc -d library -t docs/api",
+ "phpunit": [
+ "@xdebug",
+ "vendor/bin/phpunit --colors=always --testdox --stop-on-failure"
+ ],
+ "psalm": [
+ "@xdebug",
+ "@psalm:shepherd"
+ ],
+ "psalm:baseline": "vendor/bin/psalm --set-baseline=psalm-baseline.xml",
+ "psalm:dry-run": "vendor/bin/psalm --alter --issues=all --dry-run",
+ "psalm:missing": "vendor/bin/psalm --alter --issues=MissingReturnType",
+ "psalm:security": "vendor/bin/psalm --taint-analysis",
+ "psalm:shepherd": "vendor/bin/psalm --shepherd --show-info=false --stats --no-diff --no-cache",
+ "test": [
+ "@phpunit",
+ "@psalm"
+ ],
+ "xdebug": [
+ "@putenv XDEBUG_MODE=coverage"
+ ]
}
}