public function testApiHandleConnect_SetsConnectionFlags()
{
$aware = $this->createAware();
$component = $this->createComponent();
$server = $this->createServer($aware, $component);
$conn = $this->getMock(NetworkConnectionInterface::class, [], [], '', false);
$server->handleConnect($conn);
$this->assertInstanceOf(Buffer::class, $conn->httpBuffer);
$this->assertSame(false, $conn->httpHeadersReceived);
$this->assertSame(null, $conn->httpRequest);
}