Create a Mock object implementing multiple interfaces in PHPUnit

Code
<?php

use PHPUnit\Framework\TestCase;

interface 
Foo{}
interface 
Bar{}

class 
MockTypeTest extends TestCase
{
    public function 
testTypes() : void
    
{
        
$obj $this->createMock([Foo::CLASS, Bar::CLASS]);
        
        
$this->assertInstanceOf(Foo::CLASS, $obj);
        
$this->assertInstanceOf(Bar::CLASS, $obj);
    }
}
Result
Time: 00:00.004, Memory: 18.00 MB

There was 1 error:

1) MockTypeTest::testTypes
PHPUnit\Framework\TestCase::createMock(): Argument #1 ($originalClassName) must be of type string, array given, called in /var/www/ud04_297/html/senseexception/files/MockTypeTest.php on line 12

PhpunitExec.php:21

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8