setHost() public method

public setHost ( string $host ) : HeartBeat
$host string
return HeartBeat
Ejemplo n.º 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());
 }