Skip to content

Document PHPUnit 13 built‑in consecutive argument methods#318

Open
zonuexe wants to merge 1 commit into
michaelpetri:mainfrom
zonuexe:add/docs-phpunit13
Open

Document PHPUnit 13 built‑in consecutive argument methods#318
zonuexe wants to merge 1 commit into
michaelpetri:mainfrom
zonuexe:add/docs-phpunit13

Conversation

@zonuexe
Copy link
Copy Markdown
Contributor

@zonuexe zonuexe commented Feb 10, 2026

PHPUnit 13 now provides withParameterSetsInOrder(), so users on 13+ can rely on the built-ins.

 $mock
     ->expects(self::exactly(2))
     ->method('someMethod')
-    ->with(
-        ...ConsecutiveArguments::of(
+    ->withParameterSetsInOrder(
         ['1.1', '1.2'],
         ['2.1', '2.2'],
-        )
     );

This update adds a README note explaining when those native methods are preferred and when this package remains useful for projects that must also support PHPUnit 10–12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant