コード例 #1
0
ファイル: Server.php プロジェクト: Masterfion/plugin-sonos
 /**
  * @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();
 }
コード例 #2
0
ファイル: Server.php プロジェクト: ninjasilicon/core
 /**
  * @expectedException \Icewind\SMB\Exception\InvalidHostException
  */
 public function testWrongHost()
 {
     $server = new \Icewind\SMB\Server(uniqid(), $this->config->user, $this->config->password);
     $server->listShares();
 }