EricMakesStuff\ServerMonitor\Test\Integration\Monitors\HttpPingMonitorTest::it_can_fail_gracefully PHP Method

it_can_fail_gracefully() public method

    public function it_can_fail_gracefully()
    {
        $httpPingMonitor = new HttpPingMonitor(['url' => 'http://somelongdomainthatdoesntexist12345asdf.com', 'timeout' => 1, 'allowRedirects' => false]);
        $httpPingMonitor->runMonitor();
        $this->assertEmpty($httpPingMonitor->getResponseCode());
    }