-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
84 lines (84 loc) · 2.39 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "villfa/phpunit-extra-constraints",
"description": "Extra constraints for PHPUnit",
"license": [
"MIT"
],
"type": "library",
"keywords": [
"constraint",
"phpunit",
"testing"
],
"authors": [
{
"name": "Fabien VILLEPINTE",
"email": "[email protected]"
}
],
"homepage": "https://github.com/villfa/phpunit-extra-constraints",
"require": {
"php": ">=7.2",
"phpunit/phpunit": "8.* || 9.*"
},
"require-dev": {
"linfo/linfo": "^4.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"squizlabs/php_codesniffer": "^3.5",
"villfa/composer-substitution-plugin": "^1.0",
"vimeo/psalm": ">=3.11.4"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"PHPUnitExtraConstraints\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\PHPUnitExtraConstraints\\": "tests/"
}
},
"config": {
"allow-plugins": {
"villfa/composer-substitution-plugin": true
},
"optimize-autoloader": true,
"sort-packages": true
},
"extra": {
"substitution": {
"enable": true,
"mapping": {
"$(nproc)": {
"cached": true,
"type": "include",
"value": "./scripts/nproc.php"
}
}
}
},
"scripts": {
"phpcs": "phpcs --standard=PSR12 --parallel=$(nproc) src/ tests/",
"phpstan": "phpstan analyze --ansi src tests --level=max --memory-limit=-1",
"phpunit": "phpunit --colors=always --testdox --testsuite unit_tests",
"psalm": "psalm --long-progress --stats",
"test": [
"@composer validate --no-interaction --strict",
"@phpunit",
"@phpstan",
"@psalm",
"@phpcs"
]
},
"scripts-descriptions": {
"phpcs": "Runs coding style test suite",
"phpstan": "Runs complete codebase static analysis using PHPStan",
"phpunit": "Runs unit tests",
"psalm": "Runs complete codebase static analysis using Psalm",
"test": "Validates and tests the whole library."
}
}