function TestCase::createMockForIntersectionOfInterfaces
@psalm-param list<class-string> $interfaces
Throws
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1310
Class
- TestCase
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
protected function createMockForIntersectionOfInterfaces(array $interfaces) : MockObject {
$mock = (new MockGenerator())->testDoubleForInterfaceIntersection($interfaces, true);
assert($mock instanceof MockObject);
$this->registerMockObject($mock);
Event\Facade::emitter()->testCreatedMockObjectForIntersectionOfInterfaces($interfaces);
return $mock;
}