public function createChannel($methods = []) { $channel = $this->getMock(Channel::class, $methods, [], '', false); if ($this->cmd !== null && $this->existsProtectedProperty($this->cmd, 'channel')) { $this->setProtectedProperty($this->cmd, 'channel', $channel); } return $channel; }