Returning different values in a specific order from your mocked method in PHPUnit

Code
<?php

use PHPUnit\Framework\TestCase;

class 
ConsecutiveTest extends TestCase
{
    public function 
testCounterCall() : void
    
{
        
$counter $this->createMock(Counter::CLASS);
        
$counter->expects($this->atLeastOnce())
            ->
method('increment')
            ->
willReturnOnConsecutiveCalls(123);
        
        
$this->assertEquals(1$counter->increment());
        
$this->assertEquals(2$counter->increment());
        
$this->assertEquals(3$counter->increment());
        
// Any further invocation returns null
        
$this->assertEquals(null$counter->increment());
    }
}

class 
Counter
{
    private 
$count 0;
    
    public function 
increment()
    {
        return ++
$this->count;
    }
}
Result
Time: 293 ms, Memory: 12.00 MB

OK (1 test, 0 assertions)
Used Versions
PHP 7.3, Zend 3.0, Symfony 4.3, Laravel 5.8, PHPUnit 8.0, Doctrine 2.10