Kraken\_Unit\Network\Socket\HttpServerTest::testApiHandleDisconnect_DoesNothing_WhenHeadersAreNotReceived PHP Method

testApiHandleDisconnect_DoesNothing_WhenHeadersAreNotReceived() public method

    public function testApiHandleDisconnect_DoesNothing_WhenHeadersAreNotReceived()
    {
        $conn = $this->getMock(NetworkConnectionInterface::class, [], [], '', false);
        $conn->httpHeadersReceived = false;
        $aware = $this->createAware();
        $component = $this->createComponent();
        $component->expects($this->never())->method('handleDisconnect');
        $server = $this->createServer($aware, $component);
        $server->handleDisconnect($conn);
    }