PHPUnit - Using a value map for mocked functions with more than 1 return value

Code
<?php

use PHPUnit\Framework\TestCase;

class 
Foo
{
    public function 
prependAwesomeTo($str) : string
    
{
        return 
'Awesome' $str;
    }
}

class 
ValueMapTest extends TestCase
{
    public function 
testPrependAwesomeTo() : void
    
{
        
// last value in every array is return value
        
$map = [
            [
'Cat''AwesomeCat'],
            [
'Dog''AwesomeDog'],
            [
'Bird''AwesomeBird'],
        ];
        
        
$foo $this->createMock('Foo');
        
$foo->expects($this->atLeastOnce())
            ->
method('prependAwesomeTo')
            ->
will($this->returnValueMap($map));
            
        
$this->assertEquals('AwesomeCat'$foo->prependAwesomeTo('Cat'));
        
$this->assertEquals('AwesomeBird'$foo->prependAwesomeTo('Bird'));
        
$this->assertEquals('AwesomeDog'$foo->prependAwesomeTo('Dog'));
        
    }
}
Result
Time: 201 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