Methods-map for a mock object to reduce lines of code using Mockery

Code
<?php

use PHPUnit\Framework\TestCase;

class 
MockmapTest extends TestCase
{
    public function 
testMethodMap() : void
    
{
        
$mock Mockery::mock(Fooable::CLASS);
        
$mock->shouldReceive([
            
'foo' => 1,
            
'bar' => 2,
            
'baz' => new ArrayObject(),
        ])->
once();
        
        
$this->assertSame(1$mock->foo(null));
        
$this->assertSame(2$mock->bar());
        
$this->assertInstanceOf('ArrayObject'$mock->baz());
    }
    
    protected function 
tearDown() : void
    
{
        
Mockery::close();
    }
}

interface 
Fooable
{
    public function 
foo($foo);
    public function 
bar();
    public function 
baz();
}
Result
Time: 00:00.009, Memory: 4.00 MB

OK (1 test, 0 assertions)
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8