diff options
author | Remi Collet <remi@remirepo.net> | 2025-05-15 17:22:31 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-05-15 17:22:31 +0200 |
commit | c75459c0623824e2aa978456731e7a9b978b68d0 (patch) | |
tree | 537667e5fa0d673752604d0ba91406eaa464e9f4 /composer.json | |
parent | babb55fe716ba7884e294606623bddcd290af71e (diff) |
raise dependency on PHP 7.2
switch to phpunit10
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/composer.json b/composer.json index 28cdb07..b0c1fcf 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "squizlabs/php_codesniffer", - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.", "license": "BSD-3-Clause", "type": "library", "keywords": [ @@ -30,13 +30,13 @@ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy" }, "require": { - "php": ">=5.4.0", + "php": ">=7.2.0", "ext-simplexml": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*" }, "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" + "phpunit/phpunit": "^8.0 || ^9.3.4 || ^10.5.32 || ^11.3.3" }, "bin": [ "bin/phpcbf", @@ -59,15 +59,27 @@ ], "test": [ "Composer\\Config::disableProcessTimeout", - "@php ./vendor/phpunit/phpunit/phpunit tests/AllTests.php --no-coverage" + "@php ./vendor/phpunit/phpunit/phpunit --no-coverage" + ], + "test-lte9": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --no-coverage" ], "coverage": [ "Composer\\Config::disableProcessTimeout", - "@php ./vendor/phpunit/phpunit/phpunit tests/AllTests.php -d max_execution_time=0" + "@php ./vendor/phpunit/phpunit/phpunit -d max_execution_time=0" + ], + "coverage-lte9": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist -d max_execution_time=0" ], "coverage-local": [ "Composer\\Config::disableProcessTimeout", - "@php ./vendor/phpunit/phpunit/phpunit tests/AllTests.php --coverage-html ./build/coverage-html -d max_execution_time=0" + "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html -d max_execution_time=0" + ], + "coverage-lte9-local": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --coverage-html ./build/coverage-html -d max_execution_time=0" ], "build": [ "Composer\\Config::disableProcessTimeout", @@ -81,9 +93,12 @@ "scripts-descriptions": { "cs": "Check for code style violations.", "cbf": "Fix code style violations.", - "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 and generate an HTML report in a 'build' directory.", + "test": "PHPUnit 10+: Run the unit tests without code coverage.", + "test-lte9": "PHPUnit <= 9: Run the unit tests without code coverage.", + "coverage": "PHPUnit 10+: Run the unit tests with code coverage.", + "coverage-lte9": "PHPUnit <= 9: Run the unit tests with code coverage.", + "coverage-local": "PHPUnit 10+: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.", + "coverage-lte9-local": "PHPUnit <= 9: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.", "build": "Create PHAR files for PHPCS and PHPCBF.", "check-all": "Run all checks (phpcs, tests)." } |