DragonBe\Test\Vies\HeartBeatTest::testVerifyServicesIsAlive PHP Method

testVerifyServicesIsAlive() public method

    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);
    }