public createChannel ( string[] | null $methods = [] ) : Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject | ||
$methods | string[] | null | |
return | Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject |
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;
}