summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json95
1 files changed, 78 insertions, 17 deletions
diff --git a/composer.json b/composer.json
index 42a077b..ca84c58 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,8 @@
{
"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",
+ "type": "library",
"keywords": [
"bdd",
"library",
@@ -16,41 +15,103 @@
"test double",
"testing"
],
- "homepage": "https://github.com/mockery/mockery",
- "license": "BSD-3-Clause",
"authors": [
{
"name": "Pádraic Brady",
"email": "padraic.brady@gmail.com",
- "homepage": "http://blog.astrumfutura.com"
+ "homepage": "https://github.com/padraic",
+ "role": "Author"
},
{
"name": "Dave Marshall",
"email": "dave.marshall@atstsolutions.co.uk",
- "homepage": "http://davedevelopment.co.uk"
+ "homepage": "https://davedevelopment.co.uk",
+ "role": "Developer"
+ },
+ {
+ "name": "Nathanael Esayeas",
+ "email": "nathanael.esayeas@protonmail.com",
+ "homepage": "https://github.com/ghostwriter",
+ "role": "Lead Developer"
}
],
+ "homepage": "https://github.com/mockery/mockery",
+ "support": {
+ "issues": "https://github.com/mockery/mockery/issues",
+ "source": "https://github.com/mockery/mockery",
+ "docs": "https://docs.mockery.io/",
+ "rss": "https://github.com/mockery/mockery/releases.atom",
+ "security": "https://github.com/mockery/mockery/security/advisories"
+ },
"require": {
- "php": ">=5.6.0",
+ "php": ">=7.3",
"lib-pcre": ">=7.0",
"hamcrest/hamcrest-php": "^2.0.1"
},
"require-dev": {
- "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0|~9.0"
+ "phpunit/phpunit": "^8.5 || ^9.6.17",
+ "symplify/easy-coding-standard": "^12.1.14"
+ },
+ "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": {
+ "Fixture\\": "tests/Fixture/",
+ "Mockery\\Tests\\Unit\\": "tests/Unit",
"test\\": "tests/"
- }
+ },
+ "files": [
+ "fixtures/autoload.php",
+ "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
+ ]
},
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
+ "config": {
+ "optimize-autoloader": true,
+ "platform": {
+ "php": "7.3.999"
+ },
+ "preferred-install": "dist",
+ "sort-packages": true
+ },
+ "scripts": {
+ "check": [
+ "@composer validate",
+ "@ecs",
+ "@test"
+ ],
+ "docs": "vendor/bin/phpdoc -d library -t docs/api",
+ "ecs": [
+ "@ecs:fix",
+ "@ecs:check"
+ ],
+ "ecs:check": "ecs check --clear-cache || true",
+ "ecs:fix": "ecs check --clear-cache --fix",
+ "phive": [
+ ".phive/tools/phive update --force-accept-unsigned",
+ ".phive/tools/phive purge"
+ ],
+ "phpunit": "vendor/bin/phpunit --do-not-cache-result --colors=always",
+ "phpunit:coverage": "@phpunit --coverage-clover=coverage.xml",
+ "psalm": ".phive/tools/psalm --no-diff --no-cache",
+ "psalm:baseline": "@psalm --set-baseline=psalm-baseline.xml",
+ "psalm:dry-run": "@psalm --alter --issues=all --dry-run",
+ "psalm:security": "@psalm --taint-analysis",
+ "psalm:shepherd": "@psalm --stats --shepherd --output-format=github",
+ "test": [
+ "@phpunit --stop-on-defect",
+ "@psalm",
+ "@psalm:security",
+ "@psalm:dry-run"
+ ]
}
}