|
24 | 24 | "config": { |
25 | 25 | "optimize-autoloader": true, |
26 | 26 | "preferred-install": "dist", |
27 | | - "sort-packages": true |
28 | | - }, |
29 | | - "require": { |
30 | | - "php": "^8.3" |
| 27 | + "sort-packages": true, |
| 28 | + "allow-plugins": { |
| 29 | + "dealerdirect/phpcodesniffer-composer-installer": true, |
| 30 | + "infection/extension-installer": true |
| 31 | + } |
31 | 32 | }, |
32 | 33 | "require-dev": { |
33 | 34 | "php-parallel-lint/php-console-highlighter": "^1.0", |
34 | 35 | "php-parallel-lint/php-parallel-lint": "^1.3", |
35 | 36 | "phpstan/phpstan": "^1.10", |
36 | 37 | "phpunit/phpunit": "^11.0", |
37 | 38 | "slope-it/clock-mock": "^0.4.0", |
38 | | - "squizlabs/php_codesniffer": "^3.9" |
| 39 | + "squizlabs/php_codesniffer": "^3.9", |
| 40 | + "symfony/var-dumper": "^7.0" |
39 | 41 | }, |
40 | 42 | "scripts": { |
41 | | - "clear-coverage": "rm -Rf /coverage/*", |
| 43 | + "linter": "parallel-lint --colors -e php -j 10 app/ tests/", |
| 44 | + "phpcs": "phpcs -p --colors --standard=phpcs.xml app/ tests/", |
| 45 | + "phpcbf": "phpcbf -p --colors --standard=phpcs.xml app/ tests/", |
| 46 | + "phpstan": "phpstan analyse --ansi --configuration=phpstan.neon --memory-limit=1G --no-progress", |
| 47 | + "phpunit": "phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")", |
| 48 | + |
42 | 49 | "tests": [ |
43 | | - "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 app/ tests/", |
44 | | - "phpunit --configuration phpunit.xml --no-coverage --colors --testdox --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")" |
| 50 | + "@linter", |
| 51 | + "@phpcs", |
| 52 | + "@phpunit --coverage-text" |
45 | 53 | ], |
| 54 | + |
46 | 55 | "coverage": [ |
47 | | - "@clear-coverage", |
48 | | - "phpunit --configuration phpunit.xml --coverage-text --coverage-html=/coverage --colors --testdox --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")" |
49 | | - ], |
50 | | - "phpcs": "phpcs -p --colors --standard=phpcs.xml app/ tests/", |
51 | | - "phpcbf": "phpcbf -p --colors --standard=phpcs.xml app/ tests/", |
52 | | - "linter": "parallel-lint --colors -e php -j 10 app/ tests/", |
53 | | - "phpstan": "phpstan analyse --ansi --memory-limit=1G --configuration=phpstan.neon" |
| 56 | + "rm -Rf /coverage/*", |
| 57 | + "@linter", |
| 58 | + "@phpcs", |
| 59 | + "@phpunit --coverage-text --coverage-html=/coverage" |
| 60 | + ] |
54 | 61 | }, |
55 | 62 | "minimum-stability": "stable", |
56 | 63 | "prefer-stable": true |
|
0 commit comments