michaelpetri / phpunit-consecutive-arguments
Replacement for the removed InvocationMocker::withConsecutive method.
Installs: 1 625
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 3
Open Issues: 4
Requires
- php: ~8.3.0 || ~8.4.0
- phpunit/phpunit: ^10.5.45 || ^11.5.7 || ^12.0.2
Requires (Dev)
- php-cs-fixer/shim: ^3.68.5
- psalm/phar: ^6.5.1
- rector/rector: ^2.0.9
- roave/security-advisories: dev-latest
Conflicts
- dev-main
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- dev-dependabot/composer/php-cs-fixer/shim-3.72.0
- dev-dependabot/composer/psalm/phar-6.8.9
- dev-dependabot/composer/phpunit/phpunit-12.0.7
- dev-dependabot/composer/php-cs-fixer/shim-3.71.0
- dev-dependabot/composer/rector/rector-2.0.10
- dev-add-conflict-with-stevebauman-unfinalize
This package is auto-updated.
Last update: 2025-03-14 04:37:22 UTC
README
Replacement for the removed InvocationMocker::withConsecutive method.
Installation
composer require michaelpetri/phpunit-consecutive-arguments
Example
$mock ->expects(self::exactly(\count(2))) ->method('someMethod') ->with( ...ConsecutiveArguments::of( ['1.1', '1.2'], ['2.1', '2.2'], );
See Tests for more examples