michaelpetri / phpunit-consecutive-arguments
Replacement for the removed InvocationMocker::withConsecutive method.
Installs: 1 496
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 3
Open Issues: 3
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.69.1
- dev-dependabot/composer/phpunit/phpunit-12.0.3
- dev-dependabot/composer/psalm/phar-6.8.4
- dev-dependabot/composer/psalm/phar-6.8.1
- dev-dependabot/composer/friendsofphp/php-cs-fixer-3.69.1
- dev-dependabot/composer/psalm/phar-6.7.1
- dev-dependabot/composer/friendsofphp/php-cs-fixer-3.69.0
- dev-add-conflict-with-stevebauman-unfinalize
This package is auto-updated.
Last update: 2025-02-21 04:09:33 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