Create a Mock object implementing multiple interfaces in PHPUnit

Code
<?php

interface Foo{}
interface 
Bar{}

class 
MockTypeTest extends PHPUnit_Framework_TestCase
{
    public function 
testTypes()
    {
        
$obj $this->createMock([Foo::CLASS, Bar::CLASS]);
        
        
$this->assertInstanceOf(Foo::CLASS, $obj);
        
$this->assertInstanceOf(Bar::CLASS, $obj);
    }
}
Result
Time: 123 ms, Memory: 2.00MB

OK (1 test, 0 assertions)