From cba7164fbed44cedfed55e199befa6bacad4489e Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Sun, 11 Feb 2024 13:22:35 +0000 Subject: [PATCH 1/4] Disable phpcov on PHP 8.1 --- README.md | 2 +- resources/test.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3234910..8905977 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ It has been extracted as a separate project to make maintenance easier and enabl | phpcb | [PHP Code Browser](https://github.com/mayflower/PHP_CodeBrowser) | ✅ | ✅ | ✅ | | phpcbf | [Automatically corrects coding standard violations](https://github.com/squizlabs/PHP_CodeSniffer) | ✅ | ✅ | ✅ | | phpcodesniffer-composer-install | [Easy installation of PHP_CodeSniffer coding standards (rulesets).](https://github.com/Dealerdirect/phpcodesniffer-composer-installer) | ✅ | ✅ | ✅ | -| phpcov | [a command-line frontend for the PHP_CodeCoverage library](https://github.com/sebastianbergmann/phpcov) | ✅ | ✅ | ✅ | +| phpcov | [a command-line frontend for the PHP_CodeCoverage library](https://github.com/sebastianbergmann/phpcov) | ❌ | ✅ | ✅ | | phpcpd | [Copy/Paste Detector](https://github.com/sebastianbergmann/phpcpd) | ✅ | ✅ | ✅ | | phpcs | [Detects coding standard violations](https://github.com/squizlabs/PHP_CodeSniffer) | ✅ | ✅ | ✅ | | phpcs-security-audit | [Finds vulnerabilities and weaknesses related to security in PHP code](https://github.com/FloeDesignTechnologies/phpcs-security-audit) | ✅ | ✅ | ✅ | diff --git a/resources/test.json b/resources/test.json index 634822b..20e43b4 100644 --- a/resources/test.json +++ b/resources/test.json @@ -83,7 +83,7 @@ } }, "test": "phpcov -v", - "tags": ["test"] + "tags": ["test", "exclude-php:8.1"] }, { "name": "php-fuzzer", From 9e41a201c199e644e61c673057917a8d07bd5d60 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Sun, 11 Feb 2024 13:29:56 +0000 Subject: [PATCH 2/4] Exclude phpunit 11 on PHP 8.1 --- README.md | 2 +- resources/test.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8905977..cde15d8 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ It has been extracted as a separate project to make maintenance easier and enabl | phpstan-strict-rules | [Extra strict and opinionated rules for PHPStan](https://github.com/phpstan/phpstan-strict-rules) | ✅ | ✅ | ✅ | | phpstan-symfony | [Symfony extension for PHPStan](https://github.com/phpstan/phpstan-symfony) | ✅ | ✅ | ✅ | | phpstan-webmozart-assert | [PHPStan extension for webmozart/assert](https://github.com/phpstan/phpstan-webmozart-assert) | ✅ | ✅ | ✅ | -| phpunit | [The PHP testing framework](https://phpunit.de/) | ✅ | ✅ | ✅ | +| phpunit | [The PHP testing framework](https://phpunit.de/) | ❌ | ✅ | ✅ | | phpunit-8 | [The PHP testing framework (8.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ | | phpunit-9 | [The PHP testing framework (9.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ | | pint | [Opinionated PHP code style fixer for Laravel](https://github.com/laravel/pint) | ✅ | ✅ | ✅ | diff --git a/resources/test.json b/resources/test.json index 20e43b4..fe9a216 100644 --- a/resources/test.json +++ b/resources/test.json @@ -123,7 +123,7 @@ } }, "test": "phpunit --version", - "tags": ["featured", "test"] + "tags": ["featured", "test", "exclude-php:8.1"] }, { "name": "phpunit-9", From 09b56b92cd4b55d00da59fa57b10392ca335ceaa Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Sun, 11 Feb 2024 13:31:17 +0000 Subject: [PATCH 3/4] Add phpunit 10 back --- README.md | 1 + resources/test.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index cde15d8..5c6fcc8 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ It has been extracted as a separate project to make maintenance easier and enabl | phpstan-symfony | [Symfony extension for PHPStan](https://github.com/phpstan/phpstan-symfony) | ✅ | ✅ | ✅ | | phpstan-webmozart-assert | [PHPStan extension for webmozart/assert](https://github.com/phpstan/phpstan-webmozart-assert) | ✅ | ✅ | ✅ | | phpunit | [The PHP testing framework](https://phpunit.de/) | ❌ | ✅ | ✅ | +| phpunit-10 | [The PHP testing framework (10.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ | | phpunit-8 | [The PHP testing framework (8.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ | | phpunit-9 | [The PHP testing framework (9.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ | | pint | [Opinionated PHP code style fixer for Laravel](https://github.com/laravel/pint) | ✅ | ✅ | ✅ | diff --git a/resources/test.json b/resources/test.json index fe9a216..9c32e0d 100644 --- a/resources/test.json +++ b/resources/test.json @@ -125,6 +125,20 @@ "test": "phpunit --version", "tags": ["featured", "test", "exclude-php:8.1"] }, + { + "name": "phpunit-10", + "summary": "The PHP testing framework (10.x version)", + "website": "https://phpunit.de/", + "command": { + "phive-install": { + "alias": "phpunit@^10.0", + "bin": "%target-dir%/phpunit-10", + "sig": "4AA394086372C20A" + } + }, + "test": "phpunit-9 --version", + "tags": ["test"] + }, { "name": "phpunit-9", "summary": "The PHP testing framework (9.x version)", From 3f85671d1a4b47e05f33652c42220907f7159bae Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Sun, 11 Feb 2024 13:39:02 +0000 Subject: [PATCH 4/4] Switch Behat to bin plugin installation The phar remains broken and is not currently tested. See https://github.com/Behat/Behat/issues/1456 --- resources/test.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/test.json b/resources/test.json index 9c32e0d..0ab5b51 100644 --- a/resources/test.json +++ b/resources/test.json @@ -5,9 +5,10 @@ "summary": "Helps to test business expectations", "website": "http://behat.org/", "command": { - "phar-download": { - "phar": "https://github.com/Behat/Behat/releases/download/v3.13.0/behat.phar", - "bin": "%target-dir%/behat" + "composer-bin-plugin": { + "package": "behat/behat", + "namespace": "behat", + "links": {"%target-dir%/behat": "behat"} } }, "test": "behat --version",