michaelpetri/phpunit-consecutive-arguments

用于替换已删除的 InvocationMocker::withConsecutive 方法。

0.3.0 2024-05-06 05:58 UTC

README

用于替换已删除的 InvocationMocker::withConsecutive 方法。

Type Coverage Latest Stable Version License

安装

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'],
            );

查看更多示例,请见 测试