michaelpetri / phpunit-consecutive-arguments
Replacement for the removed InvocationMocker::withConsecutive method.
Installs: 1 212
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 3
Open Issues: 5
Requires
- php: ~8.2.0 || ~8.3.0
- phpunit/phpunit: ^10.2 || ^11.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.15.1
- psalm/phar: ^5.24
- rector/rector: ^0.18.0
- roave/security-advisories: dev-latest
Conflicts
- dev-main
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- dev-dependabot/composer/rector/rector-1.2.10
- dev-dependabot/composer/symfony/process-7.1.7
- dev-dependabot/composer/rector/rector-1.2.9
- dev-dependabot/composer/phpunit/phpunit-11.4.3
- dev-dependabot/composer/psalm/phar-5.26.1
- dev-add-conflict-with-stevebauman-unfinalize
This package is auto-updated.
Last update: 2024-11-11 04:11:24 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