close() public method

Closes the socket connection.
public close ( ) : boolean
return boolean Success.
コード例 #1
0
ファイル: ContextTest.php プロジェクト: EHER/chegamos
 public function testConstruct()
 {
     $subject = new Context(array('timeout' => 300));
     $this->assertTrue(300, $subject->timeout());
     $subject->close();
     unset($subject);
 }
コード例 #2
0
 public function testClose()
 {
     $stream = new Context($this->_testConfig);
     $this->assertEqual(true, $stream->close());
 }