Skip to content

Commit

Permalink
Update test tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed Apr 19, 2024
1 parent 40c4bc8 commit 74d3e66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
php:
- '8.1'
- '8.2'
- '8.3'
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -37,6 +38,7 @@ jobs:
run: |
vendor/bin/phpcs src tests
vendor/bin/phpstan analyse -c phpstan.neon
vendor/bin/composer-dependency-analyser
- name: Run tests
run: |
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
Expand Down
24 changes: 8 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"ext-json": "*"
},
"require-dev": {
"inspirum/coding-standard": "^1.3",
"inspirum/coding-standard": "^1.4",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.1",
"squizlabs/php_codesniffer": "^3.7"
"phpunit/phpunit": "^10.3",
"shipmonk/composer-dependency-analyser": "^1.5",
"squizlabs/php_codesniffer": "^3.9"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -52,8 +53,7 @@
"@style:phpcs",
"@test:unit",
"@style:phpstan",
"@check:requirement",
"@check:unused"
"@check:dependency"
],
"test:test": [
"@test:unit"
Expand All @@ -64,9 +64,6 @@
"test:coverage": [
"@phpunit --coverage-text --coverage-html=var/phpunit/coverage"
],
"test:infection": [
"@infection"
],
"style:phpcs": [
"@phpcs"
],
Expand All @@ -80,18 +77,13 @@
"style:fix": [
"@phpcbf src tests"
],
"check:requirement": [
"@composerRequireChecker"
],
"check:unused": [
"@composerUnused"
"check:dependency": [
"@composer-dependency-analyser"
],
"phpunit": "./vendor/bin/phpunit",
"phpcs": "./vendor/bin/phpcs -p -s --extensions=php --colors --report-width=140 || true",
"phpstan": "./vendor/bin/phpstan analyse -c phpstan.neon",
"phpcbf": "./vendor/bin/phpcbf -p --extensions=php",
"infection": "./tools/infection",
"composerRequireChecker": "./tools/composer-require-checker check",
"composerUnused": "./tools/composer-unused"
"composer-dependency-analyser": "./vendor/bin/composer-dependency-analyser"
}
}
6 changes: 0 additions & 6 deletions phive.xml

This file was deleted.

2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ parameters:
- tests
ignoreErrors:
-
message: "#^Parameter \\#2 \\$limit of static method Inspirum\\\\Arrayable\\\\Convertor\\:\\:toArray\\(\\) expects int<1, max>|null, int|null given\\.$#"
message: '#^Parameter \#2 \$limit of static method Inspirum\\Arrayable\\Convertor\:\:toArray\(\) expects int<1, max>|null, int|null given\.$#'
path: tests/ConvertorTest.php
count: 1

0 comments on commit 74d3e66

Please sign in to comment.