server = new Grpc\Server([]); $this->port = $this->server->addHttp2Port(['0.0.0.0:0']); } /** * @expectedException InvalidArgumentException */ public function testInvalidAddSecureHttp2Port() { $this->server = new Grpc\Server([]); $this->port = $this->server->addSecureHttp2Port(['0.0.0.0:0']); } }