public function testVerifyServicesIsAlive() { $host = '127.0.0.1'; $port = -1; HeartBeat::$testingEnabled = true; HeartBeat::$testingServiceIsUp = true; $hb = new HeartBeat($host, $port); $result = $hb->isAlive(); $this->assertTrue($result); }