Kraken\_Unit\Network\Socket\WsServerTest::testApiHandleMessage_DoesNothing_WhenReceivedDataDuringSocketClosure PHP Метод

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

    public function testApiHandleMessage_DoesNothing_WhenReceivedDataDuringSocketClosure()
    {
        $conn = $this->getMock(NetworkConnectionInterface::class, [], [], '', false);
        $mssg = new NetworkMessage('Message');
        $conn->WebSocket = new StdClass();
        $conn->WebSocket->closing = true;
        $aware = $this->createAware();
        $component = $this->createComponent();
        $server = $this->createServer($aware, $component, ['attemptUpgrade']);
        $server->expects($this->never())->method('attemptUpgrade');
        $server->handleMessage($conn, $mssg);
    }