From f4b5d5f7108cd6018b3fb990e43446a0006018d9 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Tue, 10 Feb 2026 13:07:38 +0900 Subject: [PATCH] Clarify PHPUnit 13 consecutive arguments guidance --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 53204da..17a3ef8 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,10 @@ composer require michaelpetri/phpunit-consecutive-arguments ``` See [Tests](tests/ConsecutiveArgumentsTest.php) for more examples + +## PHPUnit version notes + +- PHPUnit 10–12: [`withConsecutive()` was removed](https://github.com/sebastianbergmann/phpunit/issues/5063), so this library provides a drop-in replacement (see the [PHPUnit 9.6 deprecations note](https://github.com/sebastianbergmann/phpunit/blob/9.6/DEPRECATIONS.md)). +- PHPUnit 13+: PHPUnit ships a native alternative [`withParameterSetsInOrder()`](https://github.com/sebastianbergmann/phpunit-documentation-english/issues/405), announced in [PHPUnit 13.0](https://phpunit.de/announcements/phpunit-13.html). + +If you only target PHPUnit 13 or newer, use the built-in methods. This package stays useful when you need one codebase that runs on both PHPUnit 10–12 and 13+.