PHPackages                             seec/phpunit-consecutive-params - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. seec/phpunit-consecutive-params

ActiveLibrary[Testing &amp; Quality](/categories/testing)

seec/phpunit-consecutive-params
===============================

Drop-in Trait to use removed ConsecutiveParams from PhpUnit

1.2(1y ago)18672.5k↓10.1%26GPL-3.0-or-laterPHPPHP ^8.0CI passing

Since Jul 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/bytes-commerce/phpunit-consecutive-params)[ Packagist](https://packagist.org/packages/seec/phpunit-consecutive-params)[ Docs](https://www.bytes-commerce.de)[ RSS](/packages/seec-phpunit-consecutive-params/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (13)Used By (6)

[![Latest Stable Version](https://camo.githubusercontent.com/342fb5d26cfe14bff2d5df2352e80d79cdbfac69d98acf022e559ca4440570ef/687474703a2f2f706f7365722e707567782e6f72672f736565632f706870756e69742d636f6e73656375746976652d706172616d732f76)](https://packagist.org/packages/seec/phpunit-consecutive-params) [![Total Downloads](https://camo.githubusercontent.com/6a05deef6443c8d364721479f74d196020761cc35942a0b2524d85924532ad5e/687474703a2f2f706f7365722e707567782e6f72672f736565632f706870756e69742d636f6e73656375746976652d706172616d732f646f776e6c6f616473)](https://packagist.org/packages/seec/phpunit-consecutive-params) [![Latest Unstable Version](https://camo.githubusercontent.com/4f8b54aca83a12a8efb322164756a553de7bec4b668802d29d13a80eceec6309/687474703a2f2f706f7365722e707567782e6f72672f736565632f706870756e69742d636f6e73656375746976652d706172616d732f762f756e737461626c65)](https://packagist.org/packages/seec/phpunit-consecutive-params) [![License](https://camo.githubusercontent.com/497ddc7939741a01188a17927e55a26273a93a6953eb10915c24da56c1e4b266/687474703a2f2f706f7365722e707567782e6f72672f736565632f706870756e69742d636f6e73656375746976652d706172616d732f6c6963656e7365)](https://packagist.org/packages/seec/phpunit-consecutive-params) [![PHP Version Require](https://camo.githubusercontent.com/ce1e2ef0fb45dbe225d0f1f4c9a2d882281f13a183a39f457080489fc52b8711/687474703a2f2f706f7365722e707567782e6f72672f736565632f706870756e69742d636f6e73656375746976652d706172616d732f726571756972652f706870)](https://packagist.org/packages/seec/phpunit-consecutive-params)

### PHPUnit Consecutive Parameters

[](#phpunit-consecutive-parameters)

After [PHPUnit has removed the possibility](https://github.com/sebastianbergmann/phpunit/issues/4026) to use `withConsecutive`, which was used by thousand of UnitTests, developers need a replacement which is not offered in a neat way at the moment.

Until this problem is solved directly in PHPUnit, this library offers a simple solution to use a replacement of `withConsecutive` again. The original solution [posted here](https://github.com/sebastianbergmann/phpunit/issues/4026#issuecomment-1418205424).

Installation
------------

[](#installation)

```
$ composer require --dev seec/phpunit-consecutive-params
```

Usage
-----

[](#usage)

```
