From f9ae9f40707db0f476f911c85acd990a13430bd7 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Sat, 13 Jul 2024 09:47:32 +0200 Subject: [PATCH] Add PHPUnit 10 --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3dcedf4..add89c6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ }, "require-dev": { "phpstan/phpstan": "^1", - "phpunit/phpunit": "^9", + "phpunit/phpunit": "^9 || ^10", "slim/psr7": "^1.6", "squizlabs/php_codesniffer": "^3.10" }, @@ -51,6 +51,9 @@ "@stan", "@test:coverage" ], - "test:coverage": "php -d xdebug.mode=coverage -r \"require 'vendor/bin/phpunit';\" -- --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage --coverage-text" + "test:coverage": [ + "@putenv XDEBUG_MODE=coverage", + "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage --coverage-text" + ] } }