React\Tests\Socket\ServerTest::testConnectionWithManyClients PHP Method

testConnectionWithManyClients() public method

    public function testConnectionWithManyClients()
    {
        $client1 = stream_socket_client('tcp://localhost:' . $this->port);
        $client2 = stream_socket_client('tcp://localhost:' . $this->port);
        $client3 = stream_socket_client('tcp://localhost:' . $this->port);
        $this->server->on('connection', $this->expectCallableExactly(3));
        $this->loop->tick();
        $this->loop->tick();
        $this->loop->tick();
    }