Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.02 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.02 KB

PHPUnit Consecutive Arguments

Replacement for the removed InvocationMocker::withConsecutive method.

Type Coverage Latest Stable Version License

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