ScriptFUSIONTest\Functional\Porter\Net\Http\HttpConnectorTest::testConnectionTimeout PHP Метод

testConnectionTimeout() публичный Метод

    public function testConnectionTimeout()
    {
        try {
            $this->fetch($this->connector->setTries(1));
        } catch (FailingTooHardException $exception) {
            self::assertInstanceOf(HttpConnectionException::class, $exception->getPrevious());
            return;
        }
        self::fail('Expected exception was not thrown.');
    }