lithium\data\source\Http::disconnect PHP Метод

disconnect() публичный Метод

Disconnect from socket.
public disconnect ( ) : boolean
Результат boolean
    public function disconnect()
    {
        if ($this->_isConnected && $this->connection !== null) {
            $this->_isConnected = false;
        }
        return !$this->_isConnected;
    }

Usage Example

Пример #1
0
 public function testDisconnect()
 {
     $http = new Http($this->_testConfig);
     $result = $http->connect();
     $this->assertTrue($result);
     $result = $http->disconnect();
     $this->assertTrue($result);
 }