michaelpetri / phpunit-consecutive-arguments
用于替换已删除的 InvocationMocker::withConsecutive 方法。
0.3.0
2024-05-06 05:58 UTC
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
This package is auto-updated.
Last update: 2024-09-20 04:14:41 UTC
README
用于替换已删除的 InvocationMocker::withConsecutive 方法。
安装
composer require michaelpetri/phpunit-consecutive-arguments
示例
$mock ->expects(self::exactly(\count(2))) ->method('someMethod') ->with( ...ConsecutiveArguments::of( ['1.1', '1.2'], ['2.1', '2.2'], );
查看更多示例,请见 测试