@ -45,17 +45,18 @@
}
}
} ,
} ,
"require-dev" : {
"require-dev" : {
"ext-mbstring" : "*" ,
"ext-fileinfo" : "*" ,
"ext-fileinfo" : "*" ,
"ext-mbstring" : "*" ,
"ext-pdo_sqlite" : "*" ,
"ext-pdo_sqlite" : "*" ,
"flightphp/container" : "^1.3" ,
"flightphp/container" : "^1.3" ,
"flightphp/runway" : "^1.2" ,
"flightphp/runway" : "^1.2" ,
"league/container" : "^4.2" ,
"league/container" : "^4.2" ,
"level-2/dice" : "^4.0" ,
"level-2/dice" : "^4.0" ,
"phpstan/extension-installer" : "^1.4" ,
"phpstan/extension-installer" : "^1.4" ,
"phpstan/phpstan" : "^2. 1 ",
"phpstan/phpstan" : "^2. 2 ",
"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" : {
@ -67,12 +68,8 @@
} ,
} ,
"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" ,
"@putenv XDEBUG_MODE=coverage" ,
"@putenv XDEBUG_MODE=coverage" ,
"phpunit --coverage-html=coverage --coverage-clover=clover.xml" ,
"phpunit --coverage-html=coverage --coverage-clover=clover.xml" ,
"coverage-check clover.xml 100"
"coverage-check clover.xml 100"
@ -85,11 +82,6 @@
"echo \"Running Test Server\"" ,
"echo \"Running Test Server\"" ,
"@php -S localhost:8000 -t tests/server-v2"
"@php -S localhost:8000 -t tests/server-v2"
] ,
] ,
"test-coverage:win" : [
"del clover.xml" ,
"phpunit --coverage-html=coverage --coverage-clover=clover.xml" ,
"coverage-check clover.xml 100"
] ,
"test-performance" : [
"test-performance" : [
"echo \"Running Performance Tests...\"" ,
"echo \"Running Performance Tests...\"" ,
"@php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid" ,
"@php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid" ,
@ -99,13 +91,16 @@
"rm server.pid" ,
"rm server.pid" ,
"echo \"Performance Tests Completed.\""
"echo \"Performance Tests Completed.\""
] ,
] ,
"lint" : "phpstan --no-progress --memory-limit=256M" ,
"lint" : [
"beautify" : "phpcbf" ,
"phpstan --no-progress --memory-limit=256M -n" ,
"phpcs" : "phpcs" ,
"phpcs"
] ,
"format" : "phpcbf -q" ,
"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', '.phpunit-watcher.yml');\""
]
]
} ,
} ,
"suggest" : {
"suggest" : {