Kraken\_Unit\Network\Http\Component\Session\HttpSessionTest::testApiHandleMessage_PropagatesMessage PHP Метод

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

    public function testApiHandleMessage_PropagatesMessage()
    {
        $conn = $this->getMock(NetworkConnection::class, [], [], '', false);
        $mssg = $this->getMock(NetworkMessage::class, [], [], '', false);
        $server = $this->createServer();
        $component = $this->createComponent(['handleMessage']);
        $component->expects($this->once())->method('handleMessage')->with($conn, $mssg);
        $handler = $this->createSessionHandler();
        $session = $this->createSession($server, $component, $handler, []);
        $session->handleMessage($conn, $mssg);
    }