@@ -264,7 +264,8 @@ public function testInlineHosts()
264
264
]
265
265
)->build ();
266
266
$ host = $ client ->transport ->getConnection ();
267
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
267
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
268
+ $ this ->assertSame (9200 , $ host ->getPort ());
268
269
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
269
270
270
271
@@ -274,7 +275,8 @@ public function testInlineHosts()
274
275
]
275
276
)->build ();
276
277
$ host = $ client ->transport ->getConnection ();
277
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
278
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
279
+ $ this ->assertSame (9200 , $ host ->getPort ());
278
280
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
279
281
280
282
$ client = Elasticsearch \ClientBuilder::create ()->setHosts (
@@ -283,7 +285,8 @@ public function testInlineHosts()
283
285
]
284
286
)->build ();
285
287
$ host = $ client ->transport ->getConnection ();
286
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
288
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
289
+ $ this ->assertSame (9200 , $ host ->getPort ());
287
290
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
288
291
289
292
$ client = Elasticsearch \ClientBuilder::create ()->setHosts (
@@ -292,7 +295,8 @@ public function testInlineHosts()
292
295
]
293
296
)->build ();
294
297
$ host = $ client ->transport ->getConnection ();
295
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
298
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
299
+ $ this ->assertSame (9200 , $ host ->getPort ());
296
300
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
297
301
298
302
@@ -302,7 +306,8 @@ public function testInlineHosts()
302
306
]
303
307
)->build ();
304
308
$ host = $ client ->transport ->getConnection ();
305
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
309
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
310
+ $ this ->assertSame (9200 , $ host ->getPort ());
306
311
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
307
312
$ this ->assertSame ("user:pass " , $ host ->getUserPass ());
308
313
}
@@ -319,7 +324,8 @@ public function testExtendedHosts()
319
324
]
320
325
)->build ();
321
326
$ host = $ client ->transport ->getConnection ();
322
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
327
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
328
+ $ this ->assertSame (9200 , $ host ->getPort ());
323
329
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
324
330
325
331
@@ -333,7 +339,8 @@ public function testExtendedHosts()
333
339
]
334
340
)->build ();
335
341
$ host = $ client ->transport ->getConnection ();
336
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
342
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
343
+ $ this ->assertSame (9200 , $ host ->getPort ());
337
344
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
338
345
339
346
@@ -347,7 +354,8 @@ public function testExtendedHosts()
347
354
]
348
355
)->build ();
349
356
$ host = $ client ->transport ->getConnection ();
350
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
357
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
358
+ $ this ->assertSame (9200 , $ host ->getPort ());
351
359
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
352
360
353
361
@@ -360,7 +368,8 @@ public function testExtendedHosts()
360
368
]
361
369
)->build ();
362
370
$ host = $ client ->transport ->getConnection ();
363
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
371
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
372
+ $ this ->assertSame (9200 , $ host ->getPort ());
364
373
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
365
374
366
375
@@ -372,7 +381,8 @@ public function testExtendedHosts()
372
381
]
373
382
)->build ();
374
383
$ host = $ client ->transport ->getConnection ();
375
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
384
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
385
+ $ this ->assertSame (9200 , $ host ->getPort ());
376
386
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
377
387
378
388
@@ -386,7 +396,8 @@ public function testExtendedHosts()
386
396
]
387
397
)->build ();
388
398
$ host = $ client ->transport ->getConnection ();
389
- $ this ->assertSame ("foo.com:9500 " , $ host ->getHost ());
399
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
400
+ $ this ->assertSame (9500 , $ host ->getPort ());
390
401
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
391
402
392
403
@@ -413,7 +424,8 @@ public function testExtendedHosts()
413
424
]
414
425
)->build ();
415
426
$ host = $ client ->transport ->getConnection ();
416
- $ this ->assertSame ("the_foo.com:9200 " , $ host ->getHost ());
427
+ $ this ->assertSame ("the_foo.com " , $ host ->getHost ());
428
+ $ this ->assertSame (9200 , $ host ->getPort ());
417
429
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
418
430
419
431
@@ -428,7 +440,8 @@ public function testExtendedHosts()
428
440
]
429
441
)->build ();
430
442
$ host = $ client ->transport ->getConnection ();
431
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
443
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
444
+ $ this ->assertSame (9200 , $ host ->getPort ());
432
445
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
433
446
$ this ->assertSame ("user:abc#$@?%!abc " , $ host ->getUserPass ());
434
447
}
0 commit comments