This class provides a simple but essential heartbeat cheack on the VIES service as it's known to have availability issues.
Exemple #1
0
 /**
  * @covers DragonBe\Vies\HeartBeat::isAlive
  * @covers DragonBe\Vies\HeartBeat::connect
  */
 public function testVerifyServicesIsDown()
 {
     $host = '127.0.0.1';
     $port = -1;
     HeartBeat::$testingEnabled = true;
     HeartBeat::$testingServiceIsUp = false;
     $hb = new HeartBeat($host, $port);
     $result = $hb->isAlive();
     $this->assertFalse($result);
 }