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.009, 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.