1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11568] Set client manually so we can increase the cURL timeout

PHPBB3-11568
This commit is contained in:
Joas Schilling 2013-05-26 21:16:49 +02:00
parent 5dcf028cf0
commit a3e5efc634

View File

@ -158,6 +158,13 @@ class phpbb_functional_test_case extends phpbb_test_case
$cookieJar = new CookieJar;
self::$static_client = new Goutte\Client(array(), null, $cookieJar);
// Set client manually so we can increase the cURL timeout
self::$static_client->setClient(new Guzzle\Http\Client('', array(
Guzzle\Http\Client::DISABLE_REDIRECTS => true,
'curl.options' => array(
CURLOPT_TIMEOUT => 120
),
)));
// Reset the curl handle because it is 0 at this point and not a valid
// resource