-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
58 lines (58 loc) · 2.4 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
{
"name": "chubbyphp/chubbyphp-mock",
"description": "Chubbyphp Mock",
"keywords": ["chubbyphp", "phpunit", "mock"],
"license": "MIT",
"authors": [
{
"name": "Dominik Zogg",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1",
"ext-json": "*",
"phpunit/phpunit": "^10.4.2"
},
"require-dev": {
"chubbyphp/chubbyphp-dev-helper": "dev-master",
"infection/infection": "^0.27.8",
"php-coveralls/php-coveralls": "^2.7.0",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.45"
},
"autoload": {
"psr-4": { "Chubbyphp\\Mock\\": "src/" }
},
"autoload-dev": {
"psr-4": { "Chubbyphp\\Tests\\Mock\\": "tests/" }
},
"extra": {
"branch-alias": {
"dev-master": "1.7-dev"
}
},
"scripts": {
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
"test": [
"@test:lint",
"@test:unit",
"@test:integration",
"@test:infection",
"@test:static-analysis",
"@test:cs"
],
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=87 --verbose --coverage=build/phpunit",
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=8 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
},
"config": {
"allow-plugins": {
"infection/extension-installer": true,
"phpstan/extension-installer": true
}
}
}