From 09bc3a1234af2295972032a883c5ea42dafd6fe6 Mon Sep 17 00:00:00 2001 From: Kurt Friars Date: Tue, 22 Oct 2024 13:52:00 +0300 Subject: [PATCH] Adjust phpunit.xml to support old coverage format for php 8.1 and phpunit 10 --- composer.json | 4 ++-- phpunit.xml.dist | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index a74e2d5..5cf8554 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ ], "analyse": "vendor/bin/phpstan analyse", "test": "vendor/bin/pest", - "test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --coverage-clover coverage", + "test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --coverage-clover=coverage/clover.xml", "format": "vendor/bin/pint" }, "config": { @@ -79,4 +79,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +} diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8252ab7..ac34109 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -20,7 +20,10 @@ tests - + + + ./src + @@ -30,9 +33,4 @@ - - - ./src - -