From dac5932688ebea14fe8efba17ca836abce672f3c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Aug 2024 08:36:22 +0200 Subject: update to 2.0.1 move to /usr/share/php/Yoast/PHPUnitPolyfills2 raise dependency on PHP 5.6 drop phpunit7, add phpunit10 --- composer.json | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index 637e74a..1631d83 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ "security": "https://github.com/Yoast/PHPUnit-Polyfills/security/policy" }, "require": { - "php": ">=5.4", - "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + "php": ">=5.6", + "phpunit/phpunit": "^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "require-dev": { "php-parallel-lint/php-console-highlighter": "^1.0.0", @@ -73,7 +73,7 @@ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude tests/Polyfills/Fixtures/ValueObjectNoReturnType.php" ], "check-cs": [ - "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 5.4-" + "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 5.6-" ], "fix-cs": [ "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf" @@ -84,8 +84,11 @@ "coverage": [ "@php ./vendor/phpunit/phpunit/phpunit" ], - "coverage-local": [ - "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html" + "test10": [ + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit10.xml.dist --no-coverage" + ], + "coverage10": [ + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit10.xml.dist" ] }, "scripts-descriptions": { @@ -96,8 +99,9 @@ "lint-gte84": "Check the PHP files for parse errors. (PHP 8.4+)", "check-cs": "Check the PHP files for code style violations and best practices.", "fix-cs": "Auto-fix code style violations in the PHP files.", - "test": "Run the unit tests without code coverage.", - "coverage": "Run the unit tests with code coverage.", - "coverage-local": "Run the unit tests with code coverage writing an HTML coverage report to a \"/build/coverage-html\" directory." + "test": "Run the unit tests without code coverage (PHPUnit < 10).", + "coverage": "Run the unit tests with code coverage (PHPUnit < 10).", + "test10": "Run the unit tests without code coverage using the PHPUnit 10 configuration file.", + "coverage10": "Run the unit tests with code coverage using the PHPUnit 10 configuration file." } } -- cgit