public function testLoopWillEndWhenServerIsShutDown() { // explicitly unset server because we already call shutdown() $this->server->shutdown(); $this->server = null; $this->loop->run(); }