<?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);
}
}