public function testThrowsExceptionWhenRequestFails() { $requestWrapper = new GrpcRequestWrapper(); $requestWrapper->send(function () { throw new ApiException('message', 5); }, [[]]); }