setHost() 공개 메소드

public setHost ( string $host ) : HeartBeat
$host string
리턴 HeartBeat
예제 #1
0
 /**
  * @covers DragonBe\Vies\HeartBeat::setHost
  * @covers DragonBe\Vies\HeartBeat::getHost
  */
 public function testCanSetHost()
 {
     $host = 'www.example.com';
     $hb = new HeartBeat();
     $hb->setHost($host);
     $this->assertSame($host, $hb->getHost());
 }