Example #1
0
 /**
  * @expectedException \Icewind\SMB\Exception\InvalidHostException
  */
 public function testHostEscape()
 {
     $server = new \Icewind\SMB\Server($this->config->host . ';asd', $this->config->user, $this->config->password);
     $server->listShares();
 }
Example #2
0
 /**
  * @expectedException \Icewind\SMB\Exception\InvalidHostException
  */
 public function testWrongHost()
 {
     $server = new \Icewind\SMB\Server(uniqid(), $this->config->user, $this->config->password);
     $server->listShares();
 }