Skip to content

Commit 74d3e66

Browse files
committed
Update test tools
1 parent 40c4bc8 commit 74d3e66

File tree

4 files changed

+11
-23
lines changed

4 files changed

+11
-23
lines changed

.github/workflows/master.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
php:
1414
- '8.1'
1515
- '8.2'
16+
- '8.3'
1617
steps:
1718
- uses: actions/checkout@v2
1819
with:
@@ -37,6 +38,7 @@ jobs:
3738
run: |
3839
vendor/bin/phpcs src tests
3940
vendor/bin/phpstan analyse -c phpstan.neon
41+
vendor/bin/composer-dependency-analyser
4042
- name: Run tests
4143
run: |
4244
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

composer.json

+8-16
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"ext-json": "*"
2121
},
2222
"require-dev": {
23-
"inspirum/coding-standard": "^1.3",
23+
"inspirum/coding-standard": "^1.4",
2424
"phpstan/phpstan": "^1.10",
25-
"phpunit/phpunit": "^10.1",
26-
"squizlabs/php_codesniffer": "^3.7"
25+
"phpunit/phpunit": "^10.3",
26+
"shipmonk/composer-dependency-analyser": "^1.5",
27+
"squizlabs/php_codesniffer": "^3.9"
2728
},
2829
"autoload": {
2930
"psr-4": {
@@ -52,8 +53,7 @@
5253
"@style:phpcs",
5354
"@test:unit",
5455
"@style:phpstan",
55-
"@check:requirement",
56-
"@check:unused"
56+
"@check:dependency"
5757
],
5858
"test:test": [
5959
"@test:unit"
@@ -64,9 +64,6 @@
6464
"test:coverage": [
6565
"@phpunit --coverage-text --coverage-html=var/phpunit/coverage"
6666
],
67-
"test:infection": [
68-
"@infection"
69-
],
7067
"style:phpcs": [
7168
"@phpcs"
7269
],
@@ -80,18 +77,13 @@
8077
"style:fix": [
8178
"@phpcbf src tests"
8279
],
83-
"check:requirement": [
84-
"@composerRequireChecker"
85-
],
86-
"check:unused": [
87-
"@composerUnused"
80+
"check:dependency": [
81+
"@composer-dependency-analyser"
8882
],
8983
"phpunit": "./vendor/bin/phpunit",
9084
"phpcs": "./vendor/bin/phpcs -p -s --extensions=php --colors --report-width=140 || true",
9185
"phpstan": "./vendor/bin/phpstan analyse -c phpstan.neon",
9286
"phpcbf": "./vendor/bin/phpcbf -p --extensions=php",
93-
"infection": "./tools/infection",
94-
"composerRequireChecker": "./tools/composer-require-checker check",
95-
"composerUnused": "./tools/composer-unused"
87+
"composer-dependency-analyser": "./vendor/bin/composer-dependency-analyser"
9688
}
9789
}

phive.xml

-6
This file was deleted.

phpstan.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ parameters:
77
- tests
88
ignoreErrors:
99
-
10-
message: "#^Parameter \\#2 \\$limit of static method Inspirum\\\\Arrayable\\\\Convertor\\:\\:toArray\\(\\) expects int<1, max>|null, int|null given\\.$#"
10+
message: '#^Parameter \#2 \$limit of static method Inspirum\\Arrayable\\Convertor\:\:toArray\(\) expects int<1, max>|null, int|null given\.$#'
1111
path: tests/ConvertorTest.php
1212
count: 1

0 commit comments

Comments
 (0)