Kraken\_Unit\Channel\Router\RouterCompositeTest::testApiHandle_CallsHandleOnAllBuses PHP Method

testApiHandle_CallsHandleOnAllBuses() public method

    public function testApiHandle_CallsHandleOnAllBuses()
    {
        $name = 'name';
        $protocol = $this->createProtocol();
        $flags = 1;
        $success = function () {
        };
        $failure = function () {
        };
        $abort = function () {
        };
        $timeout = 2.0;
        $bus1 = $this->createChannelRouter();
        $bus1->expects($this->once())->method('handle')->with('bus1', $protocol, $flags, $success, $failure, $abort, $timeout);
        $bus2 = $this->createChannelRouter();
        $bus2->expects($this->once())->method('handle')->with('bus2', $protocol, $flags, $success, $failure, $abort, $timeout);
        $router = $this->createChannelRouterComposite(['bus1' => $bus1, 'bus2' => $bus2]);
        $router->handle($name, $protocol, $flags, $success, $failure, $abort, $timeout);
    }