|
14 | 14 | } |
15 | 15 | ], |
16 | 16 | "require": { |
17 | | - "php": "~8.0.0 || ~8.1.0 || ~8.2.0", |
| 17 | + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", |
18 | 18 | "ext-json": "*", |
19 | 19 | "ext-intl": "*" |
20 | 20 | }, |
21 | 21 | "require-dev": { |
22 | | - "infection/infection": "^0.26 || ^0.27", |
23 | | - "phpunit/phpunit": "^9.5 || ^10", |
24 | | - "psalm/plugin-phpunit": "^0.18.1", |
25 | | - "squizlabs/php_codesniffer": "^3.7.2", |
26 | | - "vimeo/psalm": "^5.12" |
| 22 | + "bamarni/composer-bin-plugin": "^1.8", |
| 23 | + "phpunit/phpunit": "^10.1 || ^11" |
27 | 24 | }, |
28 | 25 | "autoload": { |
29 | 26 | "psr-4": { |
|
36 | 33 | } |
37 | 34 | }, |
38 | 35 | "scripts": { |
| 36 | + "post-update-cmd": ["@phive-install"], |
| 37 | + "post-install-cmd": ["@phive-install"], |
| 38 | + "phive-install": [ |
| 39 | + "`if [ -f tools/phive ]; then echo 'tools/'; fi`phive install --trust-gpg-keys C5095986493B4AA0" |
| 40 | + ], |
39 | 41 | "test-cs": [ |
40 | | - "vendor/bin/phpcs -sp" |
| 42 | + "vendor-bin/cs/vendor/bin/phpcs -sp" |
41 | 43 | ], |
42 | 44 | "test-unit": [ |
43 | 45 | "vendor/bin/phpunit --coverage-xml=build/log/coverage-xml --coverage-clover=build/log/clover.xml --log-junit=build/log/junit.xml" |
44 | 46 | ], |
45 | | - "test-psalm": "vendor/bin/psalm --threads=4 --shepherd", |
| 47 | + "test-unit-9": [ |
| 48 | + "vendor/bin/phpunit --configuration=phpunit-9.xml --coverage-xml=build/log/coverage-xml --coverage-clover=build/log/clover.xml --log-junit=build/log/junit.xml" |
| 49 | + ], |
| 50 | + "test-psalm": "vendor-bin/psalm/vendor/bin/psalm --threads=4 --shepherd", |
46 | 51 | "test": [ |
47 | 52 | "@test-cs", |
48 | 53 | "@test-unit", |
49 | 54 | "@test-psalm" |
50 | 55 | ], |
| 56 | + "test-8.0": [ |
| 57 | + "@test-cs", |
| 58 | + "@test-unit-9", |
| 59 | + "@test-psalm" |
| 60 | + ], |
51 | 61 | "infection": [ |
52 | 62 | "mkdir -p build/log/infection", |
53 | | - "vendor/bin/infection --threads=4 --coverage=build/log --no-progress --skip-initial-tests" |
| 63 | + "tools/infection --threads=4 --coverage=build/log --no-progress --skip-initial-tests" |
54 | 64 | ], |
55 | 65 | "test-infection": [ |
56 | 66 | "@test-unit", |
|
59 | 69 | }, |
60 | 70 | "config": { |
61 | 71 | "allow-plugins": { |
| 72 | + "bamarni/composer-bin-plugin": true, |
62 | 73 | "infection/extension-installer": true |
| 74 | + }, |
| 75 | + "sort-packages": true |
| 76 | + }, |
| 77 | + "extra": { |
| 78 | + "bamarni-bin": { |
| 79 | + "bin-links": false, |
| 80 | + "forward-command": true |
63 | 81 | } |
64 | 82 | } |
65 | 83 | } |
0 commit comments