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