Kraken\_Unit\Console\Server\_T\TCommand::createSupervisor PHP Метод

createSupervisor() публичный Метод

public createSupervisor ( string[] | null $methods = [] ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Результат 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;
    }