DO NOT USE THIS TRAIT, USE THIS ONE INSTEAD: sebastianbergmann/phpunit#4026 (comment)
This is a trait that you can use in your PHPUnit tests, to replace the use of
->withConsecutive()
before upgrading to PHPUnit 10, while preserving the
functionality.
- save the file ConsecutiveCallsTrait wherever you want in your codebase
- add your own namespace to the file
- use the trait in your test files
- replace all uses of
->withConsecutive( ... )
by->with($this->consecutiveCalls( ... ))
- relax and eventually upgrade to PHPUnit 10
Unfortunately this asserts only on the first argument of each invocation