PHPackages                             michaelpetri/phpunit-consecutive-arguments - 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. michaelpetri/phpunit-consecutive-arguments

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

michaelpetri/phpunit-consecutive-arguments
==========================================

Replacement for the removed InvocationMocker::withConsecutive method.

0.3.2(1y ago)83.0k↓50%3[8 PRs](https://github.com/michaelpetri/phpunit-consecutive-arguments/pulls)MITPHPPHP ~8.3.0 || ~8.4.0CI passing

Since Jul 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/michaelpetri/phpunit-consecutive-arguments)[ Packagist](https://packagist.org/packages/michaelpetri/phpunit-consecutive-arguments)[ RSS](/packages/michaelpetri-phpunit-consecutive-arguments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (16)Used By (0)

PHPUnit Consecutive Arguments
=============================

[](#phpunit-consecutive-arguments)

Replacement for the removed InvocationMocker::withConsecutive method.

[![Type Coverage](https://camo.githubusercontent.com/a1a9a1029f54d4dd20dac254586d69b4a4baafb2d70d50379ef97e1de57602f2/68747470733a2f2f73686570686572642e6465762f6769746875622f6d69636861656c70657472692f706870756e69742d636f6e73656375746976652d617267756d656e74732f636f7665726167652e737667)](https://shepherd.dev/github/michaelpetri/phpunit-consecutive-arguments)[![Latest Stable Version](https://camo.githubusercontent.com/f287edf9f924fe35e7b0934b8a8f97d9bacb21085db115f6cabcf35eb7afbd23/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c70657472692f706870756e69742d636f6e73656375746976652d617267756d656e74732f76)](https://packagist.org/packages/michaelpetri/phpunit-consecutive-arguments)[![License](https://camo.githubusercontent.com/3f1e837bc7f728bd5a826034133eeeadb79d17554870417da67e85213809b31a/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c70657472692f706870756e69742d636f6e73656375746976652d617267756d656e74732f6c6963656e7365)](https://packagist.org/packages/michaelpetri/phpunit-consecutive-arguments)

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

[](#installation)

```
composer require michaelpetri/phpunit-consecutive-arguments
```

Example
-------

[](#example)

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

See [Tests](tests/ConsecutiveArgumentsTest.php) for more examples

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance64

Regular maintenance activity

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~83 days

Recently: every ~127 days

Total

8

Last Release

452d ago

PHP version history (4 changes)0.1.0PHP ~8.1.0 || ~8.2.0

0.2.3PHP ~8.1.0 || ~8.2.0 || ~8.3.0

0.3.0PHP ~8.2.0 || ~8.3.0

0.3.1PHP ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/74dcb48accd64ea1dd40d20cddc713f68805da8c3281da7369eba28c64d4e62e?d=identicon)[michaelpetri](/maintainers/michaelpetri)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (104 commits)")[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (8 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![smoench](https://avatars.githubusercontent.com/u/183530?v=4)](https://github.com/smoench "smoench (1 commits)")

---

Tags

testingphpunit

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/michaelpetri-phpunit-consecutive-arguments/health.svg)

```
[![Health](https://phpackages.com/badges/michaelpetri-phpunit-consecutive-arguments/health.svg)](https://phpackages.com/packages/michaelpetri-phpunit-consecutive-arguments)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59610.9M150](/packages/phpunit-phpunit-selenium)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18338.5M841](/packages/yoast-phpunit-polyfills)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[matthiasnoback/symfony-config-test

Library for testing user classes related to the Symfony Config Component

1679.8M395](/packages/matthiasnoback-symfony-config-test)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
