PHP code example of michaelpetri / phpunit-consecutive-arguments

1. Go to this page and download the library: Download michaelpetri/phpunit-consecutive-arguments library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

michaelpetri / phpunit-consecutive-arguments example snippets


        $mock
            ->expects(self::exactly(\count(2)))
            ->method('someMethod')
            ->with(
                ...ConsecutiveArguments::of(
                    ['1.1', '1.2'],
                    ['2.1', '2.2'],
            );