connect() public method

Defaults from the constructor are used for missing parameters.
public connect ( string $host = null, string $port = null, array $context = null, boolean $secure = null )
$host string Hostname of server.
$port string Port of server.
$context array List of options to pass to stream_context_create().
$secure boolean Security layer requested. @see __construct().
Ejemplo n.º 1
0
 public function testDisconnect()
 {
     $this->fixture->connect($this->config['host'], $this->config['port']);
     $this->fixture->login($this->config['username'], $this->config['password']);
     $this->fixture->disconnect();
 }