|
|
|
@ -49,6 +49,7 @@
|
|
|
|
"phpstan/phpstan": "^2.1",
|
|
|
|
"phpstan/phpstan": "^2.1",
|
|
|
|
"phpunit/phpunit": "^9.6",
|
|
|
|
"phpunit/phpunit": "^9.6",
|
|
|
|
"rregeer/phpunit-coverage-check": "^0.3.1",
|
|
|
|
"rregeer/phpunit-coverage-check": "^0.3.1",
|
|
|
|
|
|
|
|
"spatie/phpunit-watcher": "^1.23",
|
|
|
|
"squizlabs/php_codesniffer": "^4.0"
|
|
|
|
"squizlabs/php_codesniffer": "^4.0"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"config": {
|
|
|
|
@ -60,10 +61,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"scripts": {
|
|
|
|
"test": "phpunit",
|
|
|
|
"test": "phpunit",
|
|
|
|
"test-watcher": [
|
|
|
|
"test-watcher": "phpunit-watcher watch",
|
|
|
|
"phpunit-watcher || composer global require spatie/phpunit-watcher --dev",
|
|
|
|
|
|
|
|
"phpunit-watcher watch"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"test-coverage": [
|
|
|
|
"test-coverage": [
|
|
|
|
"rm -f clover.xml",
|
|
|
|
"rm -f clover.xml",
|
|
|
|
"@putenv XDEBUG_MODE=coverage",
|
|
|
|
"@putenv XDEBUG_MODE=coverage",
|
|
|
|
@ -98,7 +96,8 @@
|
|
|
|
"post-install-cmd": [
|
|
|
|
"post-install-cmd": [
|
|
|
|
"@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"",
|
|
|
|
"@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"",
|
|
|
|
"@php -r \"if (!file_exists('phpstan.neon')) copy('phpstan.dist.neon', 'phpstan.neon');\"",
|
|
|
|
"@php -r \"if (!file_exists('phpstan.neon')) copy('phpstan.dist.neon', 'phpstan.neon');\"",
|
|
|
|
"@php -r \"if (!file_exists('phpunit.xml')) copy('phpunit.xml.dist', 'phpunit.xml');\""
|
|
|
|
"@php -r \"if (!file_exists('phpunit.xml')) copy('phpunit.xml.dist', 'phpunit.xml');\"",
|
|
|
|
|
|
|
|
"@php -r \"if (!file_exists('phpunit-watcher.yml')) copy('phpunit-watcher.yml.dist', 'phpunit-watcher.yml');\""
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"suggest": {
|
|
|
|
"suggest": {
|
|
|
|
|