예제 #1
0
파일: PingTest.php 프로젝트: hydrawiki/ping
 public function testPingExec()
 {
     $ping = new Ping($this->reachable_host);
     $latency = $ping->ping('exec');
     $this->assertNotEquals(FALSE, $latency);
     $ping->setHost($this->unreachable_host);
     $latency = $ping->ping('exec');
     $this->assertEquals(FALSE, $latency);
 }
예제 #2
0
파일: Ping.php 프로젝트: dannyweeks/mersey
 /**
  * @param string $host
  * @return $this
  */
 public function setHost($host)
 {
     parent::setHost($host);
     return $this;
 }