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);
}