Kraken\_Unit\Channel\ChannelCompositeTest::createChannel PHP Метод

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

public createChannel ( Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] $buses = [], string[] | null $methods = null ) : ChannelComposite | PHPUnit_Framework_MockObject_MockObject
$buses Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[]
$methods string[] | null
Результат Kraken\Channel\ChannelComposite | PHPUnit_Framework_MockObject_MockObject
    public function createChannel($buses = [], $methods = null)
    {
        $name = 'name';
        $router = $this->getMock(RouterComposite::class, [], [], '', false);
        $loop = $this->getMock(Loop::class, [], [], '', false);
        $this->channel = $this->getMock(ChannelComposite::class, $methods, [$name, $buses, $router, $loop]);
        return $this->channel;
    }
ChannelCompositeTest