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

Method testClose

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

Source from the content-addressed store, hash-verified

443 }
444
445 public function testClose()
446 {
447 $host = 'localhost';
448 $port = 9090;
449 $persist = false;
450 $debugHandler = null;
451 $transport = new TSocket(
452 $host,
453 $port,
454 $persist,
455 $debugHandler
456 );
457 $transport->setHandle(fopen('php://memory', 'r+'));
458 $this->assertNotNull($this->getPropertyValue($transport, 'handle_'));
459
460 $transport->close();
461 $this->assertNull($this->getPropertyValue($transport, 'handle_'));
462 }
463
464 /**
465 * @dataProvider writeFailDataProvider

Callers

nothing calls this directly

Calls 3

getPropertyValueMethod · 0.80
closeMethod · 0.65
setHandleMethod · 0.45

Tested by

no test coverage detected