Skip to content

Commit

Permalink
[TASK] Raise phpunit and align changes
Browse files Browse the repository at this point in the history
PHPUnit removed the `-v` cli argument
with 10.2.4 as a followup. That flag
was the short form for the --verbose
removed with 10.0 and did not had any
effect.

Due to the fact that no composer.lock
file is used, the newer version is
installed leading to failing tests.

This change raises the version of
PHPUnit and aligns the test calls
to avoid the removed cli argument.

Used command(s):

```shell
composer require --dev --no-update \
    "phpunit/phpunit":"^10.2.6"
```
  • Loading branch information
sbuerk committed Jul 18, 2023
1 parent e308c61 commit 87b953a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
run: vendor/bin/phpstan analyze --no-progress

- name: Phpunit v10
run: vendor/bin/phpunit -v
run: vendor/bin/phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"friendsofphp/php-cs-fixer": "^3.16.0",
"phpstan/phpstan": "^1.10.14",
"phpstan/phpstan-phpunit": "^1.3.11",
"phpunit/phpunit": "^10.1.2"
"phpunit/phpunit": "^10.2.6"
},
"suggest": {
"ext-json": "PHP JSON is needed when using JSONVariableProvider: A relatively rare use case"
Expand All @@ -40,8 +40,8 @@
"bin/fluid"
],
"scripts": {
"cgl:check": "@php vendor/bin/php-cs-fixer fix --dry-run --diff -v",
"cgl:fix": "@php vendor/bin/php-cs-fixer fix --diff -v",
"cgl:check": "@php vendor/bin/php-cs-fixer fix --dry-run --diff",
"cgl:fix": "@php vendor/bin/php-cs-fixer fix --diff",
"ci:all": [
"@composer validate",
"@lint:php",
Expand All @@ -52,7 +52,7 @@
"lint:php": "find src/ tests/ -name '*.php' -print0 | xargs -0 -n1 -P4 ${PHP_BINARY} -dxdebug.mode=off -l >/dev/null",
"phpstan:check": "@php vendor/bin/phpstan analyze --no-progress",
"phpstan:generate-baseline": "@php vendor/bin/phpstan analyze --no-progress --generate-baseline=phpstan-baseline.neon",
"tests:all": "@php vendor/bin/phpunit -v"
"tests:all": "@php vendor/bin/phpunit"
},
"scripts-descriptions": {
"cgl:check": "Check coding-style in PHP files.",
Expand Down

0 comments on commit 87b953a

Please sign in to comment.