MCPcopy Create free account
hub / github.com/apache/thrift / testSetHandle

Method testSetHandle

lib/php/test/Unit/Lib/Transport/TSocketTest.php:352–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350 }
351
352 public function testSetHandle()
353 {
354 $host = 'localhost';
355 $port = 9090;
356 $persist = false;
357 $debugHandler = null;
358 $transport = new TSocket(
359 $host,
360 $port,
361 $persist,
362 $debugHandler
363 );
364
365 $this->assertFalse($transport->isOpen());
366 $transport->setHandle(fopen('php://memory', 'r+'));
367 $this->assertTrue($transport->isOpen());
368 }
369
370 public function testSetSendTimeout()
371 {

Callers

nothing calls this directly

Calls 2

isOpenMethod · 0.45
setHandleMethod · 0.45

Tested by

no test coverage detected