public createSupervisor ( string[] | null $methods = [] ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject | ||
$methods | string[] | null | |
return | Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject |
public function createSupervisor($methods = [])
{
$super = $this->getMock(SupervisorInterface::class, $methods, [], '', false);
if ($this->cmd !== null && $this->existsProtectedProperty($this->cmd, 'supervisor')) {
$this->setProtectedProperty($this->cmd, 'supervisor', $super);
}
return $super;
}