public function testConnection() { $client = stream_socket_client('tcp://localhost:' . $this->port); $this->server->on('connection', $this->expectCallableOnce()); $this->loop->tick(); }